/**
 * ELSPINA Vietnam - Custom Styles
 * Tailwind CSS CDN で対応できないカスタムスタイルを定義
 */

/* ========================================
   Base Styles
   ======================================== */

html {
  scroll-behavior: smooth;
}

/* ========================================
   Background Patterns
   ======================================== */

.bg-grid {
  background-image:
    linear-gradient(rgba(0, 102, 179, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 179, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ========================================
   Typography
   ======================================== */

.text-en {
  letter-spacing: 0.02em;
}

/* ========================================
   Animations
   ======================================== */

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger delays for sequential animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ========================================
   Logo & Branding
   ======================================== */

.logo-mark {
  background: linear-gradient(135deg, #0066b3 0%, #0066b3 50%, #004d80 50%, #004d80 100%);
}

/* ========================================
   Hero Section
   ======================================== */

.hero-bg {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.7) 100%),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .hero-bg {
    background-image:
      linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%),
      url('../images/hero-bg.jpg');
  }
}

/* ========================================
   Subtle Animated Gradient Background
   ======================================== */

.bg-subtle-gradient {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(241, 245, 249, 1) 20%,
    rgba(226, 232, 240, 1) 40%,
    rgba(241, 245, 249, 1) 60%,
    rgba(248, 250, 252, 1) 80%,
    rgba(255, 255, 255, 1) 100%
  );
  background-size: 300% 300%;
  animation: subtleGradient 12s ease infinite;
}

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

/* ========================================
   Scroll Animations
   ======================================== */

.scroll-fade-in,
.scroll-slide-up,
.scroll-slide-left,
.scroll-slide-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-in {
  transform: translateY(0);
}

.scroll-slide-up {
  transform: translateY(40px);
}

.scroll-slide-left {
  transform: translateX(40px);
}

.scroll-slide-right {
  transform: translateX(-40px);
}

.scroll-fade-in.is-visible,
.scroll-slide-up.is-visible,
.scroll-slide-left.is-visible,
.scroll-slide-right.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays for children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   Hero Typography Enhancement
   ======================================== */

.hero-title {
  position: relative;
}

/* Decorative element */
.hero-decoration {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 102, 179, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

