@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap");

:root {
  --primary: #0066FF;
  --dark: #0A0A0A;
  --light: #F4F4F5;
}

* {
  font-family: "Plus Jakarta Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: "Outfit", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: #1a1a1a;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: white;
}
::-webkit-scrollbar-thumb {
  background: #e4e4e7;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4d4d8;
}

/* 2026 UI Utilities */

/* Gradient Text */
.text-gradient-premium {
  background: linear-gradient(135deg, #0A0A0A 0%, #404040 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #0066FF 0%, #2E90FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Refined */
.glass-panel {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.04);
}

/* Hero Zoom Effect */
.hero-bg-zoom {
  animation: zoomBg 20s infinite alternate;
}

@keyframes zoomBg {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Magnetic Button Effect (Simulated via CSS) */
.btn-magnetic {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-magnetic:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 40px -10px rgba(0, 102, 255, 0.3);
}

/* Input Focus Animation */
.focus-reveal {
  transition: all 0.3s ease;
}
.focus-reveal:focus-within {
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
  border-color: #0066FF;
}

/* Bento Grid Card */
.bento-card {
  background: #F8FAFC;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid transparent;
}

.bento-card:hover {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.05);
  transform: translateY(-4px);
}

/* Image Reveal */
.reveal-img {
  clip-path: inset(0 0 100% 0);
  animation: revealImage 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  animation-delay: 0.2s;
}

@keyframes revealImage {
  0% { clip-path: inset(0 0 100% 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* Part search loading */
input.searching {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cstyle%3E@keyframes spin%7B0%25%7Btransform:rotate(0deg)%7D100%25%7Btransform:rotate(360deg)%7D%7D.spinner%7Btransform-origin:center;animation:spin 1s linear infinite%7D%3C/style%3E%3Cg class='spinner'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%230066FF' stroke-width='3' fill='none' stroke-dasharray='50' stroke-dashoffset='25' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
}

/* Mobile menu transition */
#mobileMenu {
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Marquee Animation */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
