/* ===== AI톡톡 연구소 - Premium Dark Theme Styles ===== */

/* Base Reset & Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0b14;
}
::-webkit-scrollbar-thumb {
  background: #7c5cfc44;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7c5cfc88;
}

/* Hero Grid Pattern */
.hero-grid {
  background-image:
    linear-gradient(rgba(124, 92, 252, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 252, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Scroll Dot Animation */
.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(8px); }
}

/* Navbar Glass Effect */
#navbar.scrolled {
  background: rgba(10, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Nav Link Active State */
.nav-link.active {
  color: #7c5cfc;
  background: rgba(124, 92, 252, 0.08);
}

/* Card Hover Effects */
.research-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(124, 92, 252, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
}
.research-card:hover::before {
  opacity: 1;
}
.research-card {
  position: relative;
}

/* Growth Card Glow */
.growth-card {
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.growth-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Auto Card Shine */
.auto-card {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.auto-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(124, 92, 252, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}
.auto-card:hover::after {
  opacity: 1;
}
.auto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Stat Number Animation */
.stat-item .text-4xl,
.stat-item .text-5xl {
  background: linear-gradient(135deg, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Fade-in Animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Pulse Glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 92, 252, 0.1); }
  50% { box-shadow: 0 0 40px rgba(124, 92, 252, 0.3); }
}

/* Responsive Typography */
@media (max-width: 640px) {
  .text-5xl { font-size: 2.5rem; }
  .text-6xl { font-size: 3rem; }
  .text-7xl { font-size: 3.5rem; }
}

/* Selection Color */
::selection {
  background: rgba(124, 92, 252, 0.3);
  color: #fff;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #7c5cfc;
  outline-offset: 2px;
  border-radius: 8px;
}

/* Gradient Border for CTA */
.gradient-border {
  background: linear-gradient(135deg, #7c5cfc, #4f8cff, #e84cff);
  padding: 2px;
  border-radius: 1rem;
}
.gradient-border-inner {
  background: #0f1022;
  border-radius: calc(1rem - 2px);
  padding: 2rem;
}

/* Loading Skeleton */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #161830 25%, #1c1e3a 50%, #161830 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Particle dot styles */
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(124, 92, 252, 0.3);
  border-radius: 50%;
  pointer-events: none;
}
