/*
========================================================================
THE BOILER LLC - STANDARD EXCELLENCE PRODUCTION STYLESHEET (OFFLINE SECURE CORE)
========================================================================
This stylesheet contains manual overrides, custom mechanical grids, radial ambient glows,
scrolling behavior, custom scrollbars, component animations, and modal overlays
that complement the Tailwind CSS framework.
*/

/* 1. INITIAL CUSTOM FONTS & BASE SELECTIONS */
:root {
  --color-brand-dark: #070913;
  --color-brand-navy: #0e1329;
  --color-brand-card: #151c3a;
  --color-brand-orange: #f97316;
  --color-brand-yellow: #eab308;
  --color-brand-gray: #94a3b8;
  --color-brand-light: #f8fafc;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-brand-dark);
  color: var(--color-brand-light);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--color-brand-dark);
  color: var(--color-brand-light);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('./assets/images/hero_boiler_illustration.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.02;
  pointer-events: none;
  z-index: -1;
}

/* Custom Boiler Machine Backgrounds for All Sections */
section {
  position: relative !important;
  overflow: hidden !important;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.05; /* Balanced subtle visibility that preserves high text contrast */
  pointer-events: none;
  z-index: 0;
}

/* Alternate specific images on different sections to create visually stunning layout variations */
section:nth-of-type(5n+1)::before {
  background-image: url('./assets/images/about_boiler_illustration.jpg');
}

section:nth-of-type(5n+2)::before {
  background-image: url('./assets/images/services_boiler_illustration.jpg');
}

section:nth-of-type(5n+3)::before {
  background-image: url('./assets/images/industries_boiler_illustration.jpg');
}

section:nth-of-type(5n+4)::before {
  background-image: url('./assets/images/client_boiler_illustration.jpg');
}

section:nth-of-type(5n+5)::before {
  background-image: url('./assets/images/hero_boiler_illustration.jpg');
}

main {
  flex-grow: 1;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-brand-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-orange);
}

::selection {
  background-color: var(--color-brand-orange);
  color: var(--color-brand-dark);
}

/* 2. CUSTOM MECHANICAL BLUEPRINT GRIDS & BACKGROUNDS */
.blueprint-overlay {
  background-image: 
    radial-gradient(ellipse at 50% 50%, rgba(249, 115, 22, 0.12) 0%, transparent 75%),
    linear-gradient(rgba(21, 28, 58, 0.5) 1px, transparent 1px), 
    linear-gradient(90deg, rgba(21, 28, 58, 0.5) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* 3. PREMIUM DECORATIVE RADIAL GRADIENTS */
.radial-gradient-glow {
  background-image: radial-gradient(circle at bottom, rgba(249, 115, 22, 0.06), transparent 60%);
}

.radial-amber-aura {
  background-image: radial-gradient(ellipse at 50% 50%, rgba(249, 115, 22, 0.1) 0%, transparent 80%);
}

/* 4. KEYFRAME ANIMATIONS (EMULATING FRAMER MOTION) */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes pulseBorder {
  0%, 100% { border-color: rgba(249, 115, 22, 0.3); }
  50% { border-color: rgba(249, 115, 22, 0.8); }
}

/* Styling Classes for Animations */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
  animation: fadeInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.border-pulse {
  animation: pulseBorder 3s infinite;
}

/* 5. INTERACTIVE QUOTE PROPOSAL MODAL STYLES */
#quote-modal {
  display: none; /* Controlled via script.js */
  opacity: 0;
  transition: opacity 0.3s ease;
}

#quote-modal.active {
  display: flex;
  opacity: 1;
}

#quote-modal-container {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#quote-modal.active #quote-modal-container {
  transform: scale(1) translateY(0);
}

/* 6. STATIC TOPO NAVIGATION LINK INDICATORS */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: var(--color-brand-orange);
  transform: scaleX(0);
  transition: transform 0.2s ease-out;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

/* Class-based transitions */
.transition-all-300 {
  transition: all 0.3s ease;
}

/* Accordion slide-in content override */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content.open {
  max-height: 1000px;
}

.faq-icon {
  transition: transform 0.2s ease;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

/* Utility layout helpers for absolute overlays */
.absolute-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 7. CUSTOM HEADER ORANGE THEMING OVERRIDES */
header nav {
  position: relative !important;
}

header nav a.nav-link {
  color: #cbd5e1 !important; /* Elegant slate default color for non-active items */
  transition: color 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
  font-weight: 800 !important;
  border-bottom: none !important; /* Ensure no inline border properties override this */
  padding-bottom: 4px !important;
}

header nav a.nav-link:hover {
  color: #ffffff !important; /* Highlighted text color on hover */
}

/* Active menu item styling */
header nav a.nav-link.active {
  color: #ff6a00 !important; /* Deep orange active color */
}

/* Disable the default hover pseudo-element since we use the sliding indicator */
header nav a.nav-link::after {
  display: none !important;
  content: none !important;
}

/* Modern Sliding Underline Indicator */
#nav-indicator {
  position: absolute;
  bottom: 0px;
  height: 2.5px;
  background-color: #ff6a00 !important;
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
  border-radius: 99px;
  transition: left 0.35s cubic-bezier(0.25, 1, 0.5, 1), width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 50;
}

header a.group span.text-white {
  color: #ffffff !important;
}

header .text-\[\#38bdf8\] {
  color: #ff6a00 !important;
}

header .hover\:text-\[\#38bdf8\]:hover {
  color: #ff6a00 !important;
}

header .group-hover\:border-\[\#38bdf8\]:hover,
header .group:hover .group-hover\:border-\[\#38bdf8\],
header .group-hover\:border-\[\#38bdf8\] {
  border-color: #ff6a00 !important;
}

header .border-\[\#38bdf8\] {
  border-color: #ff6a00 !important;
}

header a[class*="text-[#38bdf8]"],
header a[class*="border-[#38bdf8]"] {
  color: #ff6a00 !important;
  border-color: #ff6a00 !important;
}

/* 8. TRANSPARENT BLACK NAVIGATION & MENU DESIGNS */
#main-fixed-header {
  background-color: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

#mobile-menu-drawer {
  background-color: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Ensure link text in mobile-menu is super crisp against transparent backdrop */
#mobile-menu-drawer nav a {
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  font-weight: 900 !important;
}

#mobile-menu-drawer nav a.text-slate-300 {
  color: #f1f5f9 !important; /* Force ultra-white slate for maximum legibility */
}

/* Highlight active link in mobile drawers */
#mobile-menu-drawer nav a.active {
  color: #ff6a00 !important; /* Deep active orange */
  border-left: 3px solid #ff6a00 !important;
  padding-left: 12px !important;
  text-shadow: 0 0 8px rgba(255, 106, 0, 0.4);
}

/* 9. GLOBAL BRAND LOGO SCALE UP OVERRIDES */
#main-fixed-header a.group .h-11.w-11 {
  width: 4.5rem !important; /* VERY VERY BIG logo container (72px) */
  height: 4.5rem !important;
  border-width: 2px !important;
  border-color: #ff6a00 !important;
}

#main-fixed-header a.group span.font-sans.font-black.text-xs {
  font-size: 1.85rem !important; /* VERY VERY BIG "THE BOILER" & "LLC" typography (~30px) */
  line-height: 0.95 !important;
  letter-spacing: 0.02em !important;
}

#main-fixed-header a.group span.font-mono.text-\[7px\] {
  font-size: 10px !important; /* VERY VERY BIG mechanical subtitle details */
  letter-spacing: 0.16em !important;
  line-height: 1.4 !important;
}

/* 10. SUBTLE ENTRANCE ROTATION FOR LOGO */
@keyframes logoEntranceSpin {
  0% {
    transform: rotate(-180deg) scale(0.4);
    opacity: 0;
  }
  60% {
    transform: rotate(12deg) scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

#main-fixed-header a.group .h-11.w-11 img {
  transform-origin: center;
  animation: logoEntranceSpin 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}



