/* Custom styles for Kendo website */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out;
}

/* Japanese font styling */
.font-noto-jp {
  font-family: "Noto Sans JP", sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Tab styles */
.tab-button.active {
  border-bottom: 2px solid #2563eb;
  color: #2563eb;
}

/* Hover effects */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

.group:hover .group-hover\:bg-blue-600 {
  background-color: #2563eb;
}

.group:hover .group-hover\:text-white {
  color: white;
}

/* Modal styles */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button hover effects */
.btn-primary {
  background-color: #2563eb;
  color: white;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Navigation underline effect */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2563eb;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success/Error message styles */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.alert-success {
  background-color: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-blue {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-green {
  background-color: #dcfce7;
  color: #166534;
}

.badge-red {
  background-color: #fee2e2;
  color: #dc2626;
}

.badge-yellow {
  background-color: #fef3c7;
  color: #d97706;
}

.badge-purple {
  background-color: #f3e8ff;
  color: #7c3aed;
}

/* Japanese wave pattern */
.wave-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Footer specific styles */
footer {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

footer h3 {
  color: #ffffff !important;
}

footer .text-slate-300 {
  color: #cbd5e1 !important;
}

footer .text-slate-400 {
  color: #94a3b8 !important;
}

footer .text-blue-400 {
  color: #60a5fa !important;
}

footer a:hover {
  color: #60a5fa !important;
}

/* Ensure footer icons are visible */
footer [data-lucide] {
  color: inherit;
}

/* Newsletter form styling */
#newsletterForm input {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #ffffff !important;
}

#newsletterForm input::placeholder {
  color: #94a3b8 !important;
}

#newsletterForm input:focus {
  border-color: #3b82f6 !important;
  outline: none !important;
}

#newsletterButton {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

#newsletterButton:hover {
  background-color: #1d4ed8 !important;
}

/* Success/Error messages */
.text-green-400 {
  color: #4ade80 !important;
}

.text-red-400 {
  color: #f87171 !important;
}

/* Force footer dark background */
footer,
footer * {
  background-color: #0f172a !important;
}

footer {
  background: #0f172a !important;
  background-color: #0f172a !important;
}

/* Override any conflicting styles */
.bg-white footer,
.bg-slate-50 footer,
body footer {
  background: #0f172a !important;
  background-color: #0f172a !important;
}

/* Ensure footer content has proper colors */
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
  color: #ffffff !important;
}

footer p,
footer span,
footer div {
  color: #cbd5e1 !important;
}

footer a {
  color: #cbd5e1 !important;
}

footer a:hover {
  color: #60a5fa !important;
}

/* Newsletter form specific styles */
footer input[type="email"] {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #ffffff !important;
}

footer input[type="email"]::placeholder {
  color: #94a3b8 !important;
}

footer button[type="submit"] {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

footer button[type="submit"]:hover {
  background-color: #1d4ed8 !important;
}
