/* =============================================
   TERATOR LANDING PAGE - Custom Styles
   ============================================= */

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #6366f1, #4f46e5);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #4f46e5, #3730a3);
}

/* --- Selection --- */
::selection {
  background-color: #c7d2fe;
  color: #312e81;
}

/* --- Animations --- */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Animation Utility Classes */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 6s ease-in-out infinite;
}

/* --- Scroll Reveal --- */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="up"] {
  transform: translateY(40px);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="scale"] {
  transform: scale(0.9);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* --- Navbar Scroll States --- */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-scrolled .nav-link {
  color: #475569 !important;
}

.navbar-scrolled .nav-link:hover {
  color: #4f46e5 !important;
}

.navbar-scrolled #navbar-title {
  color: #1e293b !important;
}

.navbar-scrolled #mobile-menu-btn {
  color: #1e293b !important;
}

/* --- Feature cards shimmer on hover --- */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 102, 241, 0.03),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
  border-radius: inherit;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card:hover::before {
  left: 100%;
}

/* --- Mobile menu transition --- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.menu-open {
  display: block;
  max-height: 500px;
}

/* --- YouTube iframe responsive fix --- */
iframe {
  border-radius: inherit;
}

/* --- Gradient Text Shimmer Effect --- */
.gradient-shimmer {
  background: linear-gradient(
    110deg,
    #6366f1 0%,
    #818cf8 25%,
    #a5b4fc 50%,
    #818cf8 75%,
    #6366f1 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* --- Hover glow effects --- */
.glow-primary:hover {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.glow-accent:hover {
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}

/* --- Counter animation styling --- */
.counter {
  display: inline-block;
}

/* --- Smooth section transitions --- */
section {
  position: relative;
}

/* --- Focus styles for accessibility --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Print styles --- */
@media print {
  nav, #mobile-menu, .animate-float {
    display: none !important;
  }
  section {
    page-break-inside: avoid;
  }
}
