/* 
  V5 Custom CSS: Editorial Minimalist
*/

/* Custom Fonts from Public Directory */
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('../fonts/LINESeedSansTH_W_Th.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('../fonts/LINESeedSansTH_W_Rg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('../fonts/LINESeedSansTH_W_Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('../fonts/LINESeedSansTH_W_XBd.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'LINE Seed Sans TH';
  src: url('../fonts/LINESeedSansTH_W_He.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: #ffffff;
}
::-webkit-scrollbar-thumb {
  background: #e4e4e7;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

/* Image Fade Bottom (Linear Gradient Mask) */
.image-fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* Animations */
.fade-in {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slide-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-visible {
  opacity: 1;
  transform: translate(0);
}

/* Typed cursor styling */
.typed-cursor {
  color: #111111;
  font-weight: 300;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes scrolldown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* Nebula Page Specific Styles */
.nebula-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

@keyframes pulse-subtle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.reveal-text {
  animation: reveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.reveal-text-slow {
  animation: reveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes reveal {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
