@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Base Styles & Design Tokens */
:root {
  --primary: #0057FF;
  --primary-rgb: 0, 87, 255;
  --secondary: #00B8FF;
  --secondary-rgb: 0, 184, 255;
  --accent: #00E5A8;
  --accent-rgb: 0, 229, 168;
  --bg-light: #F7FAFF;
  --dark: #07142B;
  --dark-rgb: 7, 20, 43;
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important; /* Managed by premium custom cursor; resets standard cursor */
}

/* Fallback cursor styling for inputs & buttons */
input, select, textarea, button, a {
  cursor: none !important;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

.font-num {
  font-family: 'Space Grotesk', sans-serif;
}

/* Sleek Premium Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 87, 255, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 87, 255, 0.5);
}

/* Premium Gradient Mesh Backgrounds */
.mesh-gradient-bg {
  background-color: var(--bg-light);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 87, 255, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(0, 184, 255, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 229, 168, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(0, 87, 255, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

.mesh-gradient-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 10% 20%, rgba(0, 87, 255, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(0, 229, 168, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(0, 184, 255, 0.05) 0%, transparent 50%);
  filter: blur(80px);
  animation: morphBackground 20s infinite alternate ease-in-out;
}

@keyframes morphBackground {
  0% {
    transform: scale(1) translate(0px, 0px);
  }
  50% {
    transform: scale(1.1) translate(20px, -30px);
  }
  100% {
    transform: scale(0.95) translate(-10px, 40px);
  }
}

/* Custom Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 87, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 87, 255, 0.08);
}

.glass-input {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 87, 255, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 87, 255, 0.1);
}

.glass-card-dark {
  background: rgba(7, 20, 43, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

/* Custom Interactive Cursor Glow */
.custom-cursor {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-glow {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.2) 0%, transparent 70%);
  border: 1px solid rgba(0, 87, 255, 0.1);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, width 0.3s, height 0.3s, background 0.3s;
}

/* Hovering active cursor states */
body.hover-link .custom-cursor {
  width: 24px;
  height: 24px;
  background: rgba(0, 87, 255, 0.15);
  border: 1px solid var(--primary);
}

body.hover-link .custom-cursor-glow {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(0, 229, 168, 0.25) 0%, transparent 70%);
  border-color: rgba(0, 229, 168, 0.3);
}

/* Text glow gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-dark {
  background: linear-gradient(135deg, #FFFFFF 0%, #A5C0F3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom card container lighting and animations */
.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.glow-card:hover::after {
  opacity: 1;
}

/* Interactive slider track customization */
.slider-custom {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(0, 87, 255, 0.1);
  outline: none;
}

.slider-custom::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 87, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-custom::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(0, 87, 255, 0.4);
}

/* 3D Card Rotation Container */
.three-d-card-wrap {
  perspective: 1000px;
}

.three-d-card {
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

/* Mega Menu and transition classes */
.mega-menu-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .mega-menu-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Accordion transition logic */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .accordion-content {
  max-height: 200px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Marquee infinite scroll styles */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  gap: 2rem;
  animation: scrollMarquee 30s linear infinite;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Step Form progress animation */
.progress-bar-fill {
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button ripple canvas element overlay */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

/* Sticky CTA animation variables */
.sticky-cta-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Hide cursor on mobile/touch screens */
@media (max-width: 1024px) {
  * {
    cursor: auto !important;
  }
  .custom-cursor, .custom-cursor-glow {
    display: none;
  }
}
