/* Enhanced CSS for KOBEYA Programming School Website */
/* This file provides additional styling beyond the Tailwind CDN */

/* Import the base styles */
@import url('./style.css');

/* Custom animations for page elements */
.hero-animation {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.stats-animation {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.card-animation {
  animation: fadeInUp 0.8s ease-out both;
}

/* Staggered animations for multiple elements */
.card-animation:nth-child(1) { animation-delay: 0.1s; }
.card-animation:nth-child(2) { animation-delay: 0.2s; }
.card-animation:nth-child(3) { animation-delay: 0.3s; }
.card-animation:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced button styles */
.btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-secondary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* Course cards enhanced styling */
.course-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #e5e7eb;
}

/* Floating CTA enhanced animation */
.floating-cta {
  animation: float 3s ease-in-out infinite;
}

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

/* Enhanced FAQ section */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animation */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Form enhancements */
.form-field {
  transition: all 0.3s ease;
}

.form-field:focus {
  transform: scale(1.02);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Loading spinner for form submission */
.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

/* Success message animation */
.success-message {
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Error message animation */
.error-message {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Timeline styles for about page */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px #2563eb;
}

/* News article styling */
.news-article img {
  transition: transform 0.3s ease;
}

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

/* Custom table styling */
.comparison-table {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  font-weight: 600;
}

.comparison-table tr:hover {
  background-color: #f8fafc;
}

/* Stats counter animation */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Custom scrollbar for content areas */
.content-scroll::-webkit-scrollbar {
  width: 6px;
}

.content-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.content-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.content-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Testimonial card styling */
.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-left: 4px solid #2563eb;
}

/* Location map container */
.map-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.map-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(37, 99, 235, 0.1) 50%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Achievement badges */
.achievement-badge {
  position: relative;
  overflow: hidden;
}

.achievement-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: rotate(45deg) translateX(-200%); }
  50% { transform: rotate(45deg) translateX(200%); }
  100% { transform: rotate(45deg) translateX(-200%); }
}

/* Responsive video container */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 12px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Contact form styling enhancements */
.contact-form {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.form-section {
  border-left: 3px solid #2563eb;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

/* Course comparison highlights */
.highlight-cell {
  background: linear-gradient(135deg, #fef3cd 0%, #fde68a 100%);
  font-weight: 600;
}

/* Instructor profile card */
.instructor-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 2px solid #e0f2fe;
}

/* Safety feature icons */
.safety-icon {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #bbf7d0;
}

/* Footer enhancement */
.footer-bg {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Custom utilities for Japanese text */
.jp-heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.jp-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.8;
}