/* ========================================
   CONVERTY PRO - MAIN STYLESHEET
   Modern, Professional Design System
   ======================================== */

/* === CSS VARIABLES === */
:root {
  /* Color Scheme - Premium Deep Blue & Modern Accents */
  --primary-white: #FFFFFF;
  --bg-main: #f8faff;
  --bg-sidebar: #0f172a;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.8);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --text-on-dark: #f8fafc;
  --border-color: #e2e8f0;
  --accent-blue: #f1f5f9;
  --accent-blue-deep: #2563eb;
  --secondary-blue: #1e40af;
  --secondary-blue-dark: #1e1b4b;
  --accent-orange: #f59e0b;
  --accent-green: #10b981;
  --accent-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  --premium-gradient: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);

  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', sans-serif;

  /* Shadows - Premium Elevation */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-premium: 0 25px 50px -12px rgba(30, 58, 138, 0.1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

a {
  color: var(--accent-blue-deep);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  opacity: 1;
}

/* === UTILITY CLASSES === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mt-5 {
  margin-top: var(--spacing-xl);
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.pt-5 {
  padding-top: var(--spacing-xl);
}

.pb-5 {
  padding-bottom: var(--spacing-xl);
}

/* === ANIMATED BLOBS === */
.blob-container {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  /* Reduced blur for performance */
  opacity: 0.12;
  animation: blob-animation 25s ease-in-out infinite;
  will-change: transform;
  /* Promote to GPU layer */
  pointer-events: none;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--secondary-blue);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary-blue-light);
  bottom: -5%;
  left: -5%;
  animation-delay: 4s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: var(--secondary-blue);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 8s;
}

.blob-4 {
  width: 250px;
  height: 250px;
  background: var(--accent-orange);
  top: 20%;
  left: 20%;
  filter: blur(50px);
  opacity: 0.1;
  animation-delay: 2s;
}

.blob-5 {
  width: 300px;
  height: 300px;
  background: #ec4899;
  bottom: 20%;
  right: 20%;
  filter: blur(60px);
  opacity: 0.1;
  animation-delay: 5s;
}

@keyframes blob-animation {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -50px) scale(1.1);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  75% {
    transform: translate(50px, 30px) scale(1.05);
  }
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--secondary-blue);
  border: 2px solid var(--secondary-blue);
}

.btn-outline:hover {
  background: var(--secondary-blue);
  color: white;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

/* === CARDS === */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* === GRID SYSTEM === */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
}

.col-1 {
  flex: 0 0 8.333%;
  max-width: 8.333%;
}

.col-2 {
  flex: 0 0 16.666%;
  max-width: 16.666%;
}

.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-8 {
  flex: 0 0 66.666%;
  max-width: 66.666%;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Larger Grid Spacing Utility */
.row-lg {
  margin: 0 -24px;
}

.row-lg>[class*="col-"] {
  padding: 0 24px;
}

/* Vertical Spacing Utility */
.gap-y-lg>*+* {
  margin-top: var(--spacing-xl);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .col-3,
  .col-4,
  .col-6,
  .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .blob-1,
  .blob-2,
  .blob-3 {
    width: 300px;
    height: 300px;
  }

  .right-panel {
    display: none !important;
  }

  .hero-section {
    min-height: 400px !important;
  }
}

/* === LOADING SPINNER === */
.spinner {
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--secondary-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: var(--spacing-md) auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* === FADE IN ANIMATION === */
.fade-in {
  animation: fadeIn var(--transition-slow) ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  background: linear-gradient(120deg, #eff6ff 0%, #eef2ff 100%);
  border-radius: var(--radius-lg);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  min-height: 250px;
  margin-bottom: var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-blue-dark);
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.hero-icons {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  pointer-events: none;
}

.hero-float-icon {
  position: absolute;
  font-size: 3rem;
  background: white;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue-deep);
  animation: float 6s ease-in-out infinite;
}

.hero-icon-1 {
  top: 20%;
  right: 20%;
  animation-delay: 0s;
  color: #ff4757;
}

.hero-icon-2 {
  bottom: 30%;
  right: 40%;
  animation-delay: 2s;
  color: #37d67a;
  font-size: 2.5rem;
}

.hero-icon-3 {
  top: 40%;
  right: 10%;
  animation-delay: 4s;
  color: #5352ed;
  font-size: 2rem;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* === STATS CARDS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.stat-card {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
  color: white;
  position: relative;
  overflow: hidden;
}

.stat-card:nth-child(1) {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-header {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-xs);
  position: relative;
  z-index: 1;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--spacing-xs);
  position: relative;
  z-index: 1;
}

.stat-trend {
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.stat-trend.positive {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
}

.stat-trend.negative {
  color: rgba(255, 255, 255, 0.9);
}

/* === FEATURE CARDS (WHY CHOOSE US) === */
.feature-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  text-align: center;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-blue-deep);
  background: white;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: var(--spacing-xs);
  transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-blue-dark);
  margin-bottom: 0;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* === SIDEBAR REFINEMENTS === */
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
}

.logo-text {
  color: #ffffff;
  font-size: 1.7rem;
}

.logo-container {
  color: var(--primary-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  color: #94a3b8;
  border-radius: var(--radius-sm);
  margin-bottom: 5px;
}

.nav-link:hover,
.nav-link.active {
  background: rgb(255, 255, 255);
  color: var(--primary-white);
  box-shadow: none;
  transform: translateX(5px);
}

.nav-link i {
  width: 24px;
  text-align: center;
}

/* === RIGHT PANEL & COMPANY CARD === */
.company-details-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
}

.company-logo {
  width: 100%;
  height: 80px;
  background: transparent;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
  border-radius: 25px;
}

.company-logo img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 25px;

}



/* === GLASSMORPHISM UTILS === */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* === LOW PERFORMANCE MODE === */
body.low-performance * {
  backdrop-filter: none !important;
  animation: none !important;
  transition: transform 0.1s ease !important;
  /* Minimal transitions only */
}

body.low-performance .blob {
  display: none !important;
}

body.low-performance .feature-card {
  background: white !important;
  border: 1px solid #e2e8f0 !important;
}