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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
}

.font-serif {
  font-family: 'Noto Serif SC', serif;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(45, 90, 39, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(45, 90, 39, 0.5);
  }
}

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

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes slide-in-from-bottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes line-draw {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

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

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

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

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

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

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

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

.animate-slide-in {
  animation: slide-in-from-bottom 0.6s ease-out forwards;
}

.animate-line-draw {
  animation: line-draw 1s ease-out forwards;
}

.animate-fade-in-up:nth-child(2) {
  animation-delay: 0.2s;
}

.animate-fade-in-up:nth-child(3) {
  animation-delay: 0.4s;
}

.animate-fade-in-up:nth-child(4) {
  animation-delay: 0.6s;
}

.card {
  @apply bg-white rounded-xl shadow-md overflow-hidden;
}

.btn-primary {
  @apply px-6 py-2 bg-[#2d5a27] text-white font-medium rounded-lg hover:bg-[#254a20] transition-all duration-300;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #2d5a27;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1a3a16;
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none;
  }
}

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

.bg-gradient-hero {
  background: linear-gradient(135deg, rgba(45, 90, 39, 0.9) 0%, rgba(45, 90, 39, 0.7) 50%, rgba(201, 169, 98, 0.3) 100%);
}

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

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

.hover-scale {
  transition: transform 0.5s ease;
}

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

.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-effect-dark {
  background: rgba(26, 58, 22, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.shadow-soft {
  box-shadow: 0 4px 20px rgba(45, 90, 39, 0.08);
}

.shadow-medium {
  box-shadow: 0 8px 30px rgba(45, 90, 39, 0.12);
}

.shadow-strong {
  box-shadow: 0 12px 40px rgba(45, 90, 39, 0.15);
}

.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(#faf8f5, #faf8f5) padding-box,
              linear-gradient(135deg, #2d5a27, #c9a962) border-box;
}

.radial-gradient-overlay {
  background: radial-gradient(circle at 50% 50%, rgba(45, 90, 39, 0.4) 0%, rgba(45, 90, 39, 0.8) 100%);
}

.clip-path-slant {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.clip-path-slant-reverse {
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}