/* ==========================================================================
   Roudhri Systems Pvt Ltd - Enhanced Master Stylesheet
   Rich Background Gradients, Modern UI Glassmorphism & Carousel Engine
   ========================================================================== */

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

:root {
  --primary: #0F172A;
  --primary-dark: #0B132B;
  --primary-deep: #030712;
  --secondary: #2563EB;
  --secondary-hover: #1D4ED8;
  --accent: #06B6D4;
  --accent-light: #22D3EE;
  --bg-light: #F8FAFC;
  --bg-card-light: #FFFFFF;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF;
  color: #334155;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Poppins', sans-serif;
}

/* ==========================================================================
   Rich Background Color Themes & Mesh Gradients
   ========================================================================== */

.bg-space-dark {
  background: radial-gradient(circle at 50% 0%, #1E1B4B 0%, #0F172A 50%, #0B132B 100%);
}

.bg-mesh-dark {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #0B132B 100%);
}

.bg-mesh-gradient {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #042F2E 100%);
}

.bg-light-soft {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
}

.bg-light-cyan {
  background: radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.08) 0%, rgba(248, 250, 252, 1) 70%);
}

.bg-cta-mesh {
  background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 50%, #083344 100%);
}

/* Dynamic Radial Glows */
.bg-glow-blue {
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.18) 0%, rgba(15, 23, 42, 0) 70%);
}

.bg-glow-cyan {
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.18) 0%, rgba(15, 23, 42, 0) 70%);
}

.bg-glow-purple {
  background: radial-gradient(circle at center, rgba(147, 51, 234, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

/* Glassmorphism Styles */
.glass-dark {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark-card {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border-radius: 1rem;
  overflow: hidden; /* Strict Outer Clipping */
}

.glass-light {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-nav {
  background: rgba(11, 19, 43, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gradient Text Utilities */
.text-gradient {
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38BDF8 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #A855F7 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0F172A;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2563EB;
}

/* Hover Micro-interactions */
.card-hover-effect {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover-effect:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
}

.border-glow-hover {
  transition: all 0.3s ease;
}
.border-glow-hover:hover {
  border-color: #06B6D4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

/* Active Nav State */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #06B6D4;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: #06B6D4 !important;
}

/* Tab active state */
.tab-btn.active {
  background-color: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

/* Custom Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.accordion-item.active .accordion-content {
  max-height: 500px;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   BULLETPROOF CAROUSEL LAYOUT ENGINE (ZERO BLEEDING OR OVERLAP)
   ========================================================================== */

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-dot.active {
  width: 28px;
  border-radius: 6px;
  background-color: #06B6D4;
}

.carousel-dot-light {
  background-color: rgba(15, 23, 42, 0.2);
}

.carousel-dot-light.active {
  background-color: #2563EB;
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}
