/* ===========================================
   MahalCo - High-Performance ML Consulting
   =========================================== */

:root {
  /* Brand Colors from Logo */
  --brand-gradient: linear-gradient(135deg, #8a2be2, #00e8ff);
  --brand-purple: #8a2be2;
  --brand-cyan: #00e8ff;

  /* Trust-Building Neutrals */
  --midnight: #0f172a; /* Deep, intelligent navy-black */
  --slate-600: #475569; /* Professional grey */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --off-white: #f8fafc;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: var(--off-white);
  color: var(--midnight);
  -webkit-font-smoothing: antialiased;
}

main.relative {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  /* THE 4K FIX: Seamless Repeat + Depth Mask */
  background-image: 
    /* Layer 1: The Dark Wash (keeps text readable) */ linear-gradient(
      to bottom,
      rgba(214, 210, 216, 0.8),
      rgba(211, 236, 238, 0.95)
    ),
    /* Layer 2: The Grid (adds technical texture) */
      radial-gradient(
        circle at 2px 2px,
        rgba(0, 232, 255, 0.1) 1px,
        transparent 0
      ),
    /* Layer 3: The Image (now repeating seamlessly) */
      url("../assets/images/background-lt.png");

  background-size: auto, 60px 60px, 1200px;
  background-repeat: repeat;
  background-position: center;
}

/* Luminous Purple for Dark Backgrounds */
.hero-title .purple-highlight {
  color: #d8b4fe; /* A much lighter, "lavender-electric" purple */
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.4),
    0 0 40px rgba(168, 85, 247, 0.2);
  font-weight: 800;
}

/* Bright Cyan for contrast */
.hero-title .cyan-highlight {
  color: #00e8ff;
  text-shadow: 0 0 20px rgba(0, 232, 255, 0.4);
}
/* LUMINOSITY FOR THE PURPLE */
.text-purple-glow {
  color: #c084fc; /* A slightly lighter "Lavender" purple for dark mode */
  font-weight: 700;
  text-shadow: 0 0 15px rgba(192, 132, 252, 0.4); /* Makes it pop against the dark */
}

.text-cyan-glow {
  color: #00e8ff;
  text-shadow: 0 0 15px rgba(0, 232, 255, 0.5);
}

/* HEADER & NAVIGATION */
.navbar-bg {
  background: var(--glass-bg);
  backdrop-filter: blur(12px); /* Modern "Glass" effect */
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-menu-logo {
  height: 60px; /* Scaled for professional elegance */
  width: auto;
  vertical-align: middle;
  filter: drop-shadow(0 4px 6px rgba(138, 43, 226, 0.1));
}

.nav-link {
  color: var(--slate-600) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem;
  transition: color 0.3s ease;
}

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

/* TYPOGRAPHY - FORWARD THINKING */
.hero-title {
  font-size: 3.5rem; /* Reduced size for elegance */
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #ffffff;
  text-transform: none; /* Avoid shouting */
}

/* Replace italics with a subtle "Data Glow" */
.hero-title span.text-highlight {
  font-style: normal;
  color: #00e8ff; /* Your Brand Cyan */
  text-shadow: 0 0 20px rgba(0, 232, 255, 0.3);
}

.hero-description {
  color: #94a3b8; /* Soft slate for better readability */
  font-size: 1.25rem;
  max-width: 32rem;
  margin: 1.5rem auto;
  line-height: 1.6;
}

/* Use your logo colors for the most important words */
.highlight {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* TRUST ELEMENTS */
.tech-stamp {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-purple);
  background: rgba(138, 43, 226, 0.05);
  padding: 4px 12px;
  border: 1px solid rgba(138, 43, 226, 0.2);
  border-radius: 100px; /* Pill shape is more modern/friendly */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
/* CLEAN PROFESSIONAL DROPDOWN ITEMS */
.dropdown-item {
  display: block;
  padding: 1rem 1.5rem;
  color: #475569; /* Slate grey - builds trust */
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  /* Instead of a dark block, we use a light tint and your brand cyan */
  background-color: #f8fafc;
  color: #8a2be2; /* Your brand purple */
  padding-left: 1.8rem; /* Subtle "slide" effect on hover */
  border-left: 3px solid #00e8ff; /* Your brand cyan */
}

/* FIXING THE PANEL ALIGNMENT */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: visible; /* Keeps the hover highlights inside the rounded corners */
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: slideUp 0.3s ease-out;
  background-color: var(--off-white);
  color: var(--brand-purple) !important;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* THE ANCHOR */
.product-flyout-wrapper {
  position: relative; /* This is the "docking station" */
}

/* THE FLIGHT PATH */
.flyout-panel {
  display: none;
  position: absolute;
  /* This moves it exactly to the right of the main menu */
  left: 100%;
  top: 0;

  width: 320px;
  background: white;
  padding: 24px;
  margin-left: 10px; /* Small gap so it doesn't touch the main menu */

  /* Modern High-Trust Styling */
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.1);
  color: #0f172a; /* Midnight */
  z-index: 1001; /* Ensure it stays above the main dropdown */
}

/* Style the text for high-trust authority */
.flyout-panel h4 {
  color: #0f172a; /* Midnight */
  font-family: "Inter", sans-serif;
  letter-spacing: -0.01em;
}

.flyout-panel p {
  color: #475569; /* Slate grey */
  line-height: 1.5;
  font-size: 0.875rem;
}

/* THE TRIGGER */
.product-flyout-wrapper:hover .flyout-panel {
  display: block;
  animation: glideIn 0.2s ease-out;
}

@keyframes glideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
