/* ========================================================================
   CXOkit Consolidated CSS - Production Ready
   ======================================================================== */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

/* ========================================================================
   NAVIGATION BAR
   ======================================================================== */
.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: #1e293b !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.btn-primary {
  background: var(--gradient-1);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}


/* ========================================================================
   DROPDOWN & MULTI-LEVEL SUBMENUS
   ======================================================================== */
/* Ensure any shown dropdown is positioned and animated */
.dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  position: absolute;
  z-index: 1050;
}
/* Remove submenu arrow indicator */
.dropdown-submenu > .dropdown-item::after {
    /* content: ""; */
    /* border: solid #6b7280; */
    /* border-width: 0 2px 2px 0; */
    /* display: inline-block; */
    /* padding: 4px; */
    /* transform: rotate(-45deg); */
    /* float: right; */
    /* margin-top: 6px; */
    content: none; /* This alone will hide the arrow */
}
/* Base dropdown styling */
.dropdown-menu {
  min-width: 280px;
  max-height: 60vh;
  background-color: #ffffff;
  border: 1px solid #dde2e8;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  display: none;
  opacity: 0;
  transform: scale(0.9);
}

/* Custom scrollbar */
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background-color: #a1aab8;
  border-radius: 3px;
}
.dropdown-menu::-webkit-scrollbar-track {
  background-color: #f1f3f5;
  border-radius: 3px;
}

/* Dropdown items */
.dropdown-item {
  position: relative;
  padding: 0.6rem 1rem;
  color: #1f2937;
  background: transparent;
  transition: all 0.2s ease;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #eef2f7;
  color: #111827;
  transform: translateX(4px);
}

/* Subtitle text within items */
.dropdown-menu .dropdown-item small {
  font-size: 0.75rem;
  line-height: 1.2;
  color: #6b7280;
  display: block;
  margin-top: 2px;
}

/* Multi-level submenu positioning */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  margin-top: -1px !important;
  display: none !important;
  opacity: 0 !important;
  transform: scale(0.9) !important;
  z-index: 1051 !important;
}

.dropdown-submenu.dropstart .dropdown-menu {
  left: auto !important;
  right: 100% !important;
}

/* Arrow indicators */
.dropdown-submenu > .dropdown-item::after {
  border: solid #6b7280;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(-45deg);
  float: right;
  margin-top: 6px;
}

/* Hover reveal for submenus */
.dropdown-submenu:hover > .dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Show class for submenus */
.dropdown-submenu .dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Mobile adjustments */
@media (max-width: 991px) {
  .dropdown-submenu .dropdown-menu {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }
  
  .dropdown-submenu .dropdown-menu.show {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
  }
}


/* ======================================================================== 
   HERO SECTION 
   ======================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #040a29 0%, #764ba2 50%, #050f33 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-hero-primary {
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    color: #667eea;
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.3);
    border-color: white;
    color: white;
}

/* ======================================================================== 
   SECTIONS 
   ======================================================================== */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    text-align: center;
    margin: 0 auto 4rem;
}

.section-dark {
    background: var(--dark-bg);
    color: white;
}

.section-dark .section-subtitle {
    color: rgba(255,255,255,0.7);
}

/* ======================================================================== 
   FEATURE CARDS 
   ======================================================================== */
.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-top-color: #667eea;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: #64748b;
    line-height: 1.7;
}

/* ======================================================================== 
   FORMS 
   ======================================================================== */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

/* ======================================================================== 
   CTA SECTION 
   ======================================================================== */
.cta-section {
    background: var(--gradient-1);
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* ======================================================================== 
   FOOTER 
   ======================================================================== */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 4rem 0 2rem;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}


/* ======================================================================== 
   HERO STATS PLACEHOLDERS 
   ======================================================================== */

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  color: #fff;
  text-align: center;
  border-radius: 20px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 1.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  min-width: 180px;
  position: relative;
  overflow: hidden;
}

.hero-stat::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 70%);
  transform: scale(0);
  transition: transform 0.4s ease;
}

.hero-stat:hover::before {
  transform: scale(1);
}

.hero-stat:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

.hero-stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #00eaff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.6);
  transition: color 0.3s ease;
}

.hero-stat:hover .hero-stat-number {
  color: #ffea00;
  text-shadow: 0 0 15px rgba(255, 234, 0, 0.8);
}

.hero-stat-label {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: #dcdcdc;
  font-weight: 500;
  transition: color 0.3s ease;
}

.hero-stat:hover .hero-stat-label {
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero-stat-number {
    font-size: 2.5rem;
  }
  .hero-stat-label {
    font-size: 1rem;
  }
  .hero-stats {
    gap: 2rem;
    padding: 2rem 1rem;
  }
}


/* ======================================================================== 
   IMAGE PLACEHOLDERS 
   ======================================================================== */
.img-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 600;
    border-radius: 8px;
}

/* ======================================================================== 
   RESPONSIVE 
   ======================================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

/* ======================================================================== 
   UTILITIES 
   ======================================================================== */
.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}
