@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: #0a0b1a;
  --card: #ffffff;
  --card-foreground: #0a0b1a;
  --popover: #ffffff;
  --popover-foreground: #0a0b1a;
  --primary: #f59e0b;
  --primary-foreground: #0a0b1a;
  --secondary: #1e3a8a;
  --secondary-foreground: #ffffff;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(0.708 0 0);
  --radius: 0.625rem;
}

.dark {
  --background: #0a0b1a;
  --foreground: #ffffff;
  --card: #0f1629;
  --card-foreground: #ffffff;
  --popover: #0f1629;
  --popover-foreground: #ffffff;
  --primary: #fbbf24;
  --primary-foreground: #0a0b1a;
  --secondary: #1e40af;
  --secondary-foreground: #ffffff;
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size);
}

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

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

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

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

@keyframes rotate360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

/* Animation classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-bounce-up-down {
  animation: bounceUpDown 2s ease-in-out infinite;
}

.animate-rotate-360 {
  animation: rotate360 20s linear infinite;
}

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

/* Hero Stats Responsive Design */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

@media (min-width: 640px) {
  .hero-stats-grid {
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-stats-grid {
    gap: 2rem;
    padding-top: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-stats-grid {
    gap: 3rem;
    padding-top: 2.5rem;
    max-width: none;
  }
}

@media (min-width: 1280px) {
  .hero-stats-grid {
    gap: 4rem;
    padding-top: 3rem;
  }
}

/* Custom width and height utilities */
.w-18 {
  width: 4.5rem;
}

.h-18 {
  height: 4.5rem;
}

/* Responsive stats adjustments */
@media (min-width: 1024px) {
  .hero-stats-grid .hover-scale {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }
}

@media (min-width: 1280px) {
  .hero-stats-grid .hover-scale {
    min-height: 240px;
    padding: 1.5rem;
  }
}

/* Hamburger Menu Animation */
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.hamburger-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.hamburger-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effects */
.hover-scale {
  transition: transform 0.3s ease;
}

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

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Button styles */
.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: white;
  padding: 12px 32px;
  border: 2px solid white;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background-color: white;
  color: var(--secondary);
}

/* Card styles */
.card {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient overlays */
.gradient-overlay {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 64, 175, 0.7) 100%);
}

.gradient-overlay-hero {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 58, 138, 0.7) 50%, transparent 100%);
}

/* Mobile menu animation */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.mobile-menu.active {
  max-height: 400px;
}

/* Statistics counter animation */
.counter {
  display: inline-block;
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: white;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: white;
  font-size: 16px;
  resize: vertical;
  min-height: 120px;
  transition: all 0.3s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .container-padding {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-stats-container {
    padding: 2rem 0;
  }
  
  .hero-stats-item {
    padding: 1.5rem;
  }
  
  .hero-stats-icon-container {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1rem;
  }
  
  .hero-stats-number {
    font-size: 3rem;
    line-height: 1.1;
  }
  
  .hero-stats-label {
    font-size: 1.125rem;
    margin-top: 0.5rem;
  }
}

@media (min-width: 1280px) {
  .hero-stats-icon-container {
    width: 6rem;
    height: 6rem;
  }
  
  .hero-stats-number {
    font-size: 4rem;
  }
  
  .hero-stats-label {
    font-size: 1.25rem;
  }
}

/* Loading animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s ease-in-out infinite;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: rgba(245, 158, 11, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  border: 2px solid rgba(245, 158, 11, 0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

/* Floating action button */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1000;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.fab.bounce {
  animation: bounceUpDown 2s ease-in-out infinite;
}