/* ================================================================
   TERRAISE Corporate Site - Shared Styles
   Complements Tailwind CSS utility classes
   ================================================================ */

/* ── Base ───────────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: #191c1d;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Hero Fallback (no WebGL) ──────────────────────────────────── */

.hero-fallback {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(65, 206, 244, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(65, 206, 244, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(65, 206, 244, 0.04) 0%, transparent 40%);
}

/* ── Scroll Indicator ──────────────────────────────────────────── */

@keyframes bounce-down {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.8;
  }
}

.scroll-indicator {
  animation: bounce-down 2s ease-in-out infinite;
}

/* ── CTA Glow ──────────────────────────────────────────────────── */

@keyframes cyan-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(65, 206, 244, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(65, 206, 244, 0.5);
  }
}

.cta-glow {
  animation: cyan-glow 3s ease-in-out infinite;
}

/* ── Card Hover ────────────────────────────────────────────────── */

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

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 36, 68, 0.1);
}

/* ── GSAP Initial States (before animation) ────────────────────── */

.gsap-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.gsap-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── News Category Badges ──────────────────────────────────────── */

.badge-pr {
  background: #41cef4;
  color: white;
}

.badge-media {
  background: #f59e0b;
  color: white;
}

.badge-info {
  background: #e5e7eb;
  color: #43474e;
}

.badge-note {
  background: #2cbc63;
  color: white;
}

/* ── Selection Color ───────────────────────────────────────────── */

::selection {
  background: rgba(65, 206, 244, 0.2);
}

/* ── Smooth Link Underline ─────────────────────────────────────── */

.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #41cef4;
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}
