/* ==========================================================================
   Galaxy Solutions - Official Corporate Stylesheet
   Theme: High-Impact Precision Engineering & Water Technology
   Inspired by: GreenMatrix / CorelDRAW Theme Palette
   - Primary Royal Blue: #416ab0 / #325696 / #234b88
   - Deep Corporate Blue: #1e335e / #172749 / #0f1a33
   - Fresh Eco Green: #408e3c / #2e712a / #1c3d1b
   - Pure Water Sky: #0284c7 / #38bdf8 / #e0f2fe
   - Crisp Ice Alabaster: #ffffff / #f4f8fd / #e8f1fc
   ========================================================================== */

:root {
  /* PDF Theme Signature Royal Blue */
  --color-brand-blue: #416ab0;
  --color-brand-blue-hover: #325696;
  --color-brand-blue-dark: #234b88;
  --color-brand-blue-deep: #172749;
  --color-brand-blue-light: #5d84c7;
  --color-brand-blue-subtle: #f0f5fc;
  --color-brand-blue-border: #bcd5f5;

  /* PDF Theme Signature Eco Green */
  --color-brand-green: #408e3c;
  --color-brand-green-hover: #2f742c;
  --color-brand-green-dark: #265c24;
  --color-brand-green-light: #52a94d;
  --color-brand-green-subtle: #edf7ec;
  --color-brand-green-border: #b8e2b5;

  /* Water Cyan */
  --color-brand-cyan: #0284c7;
  --color-brand-cyan-light: #38bdf8;
  --color-brand-cyan-subtle: #e0f2fe;

  /* Slates & Neutrals */
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--color-slate-800);
  background-color: #f8fafc;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

/* Custom Themed Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f0f5fc;
}
::-webkit-scrollbar-thumb {
  background: #9ec4ee;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #416ab0;
}

/* High-Impact Gradient Text */
.gradient-text-brand {
  background: linear-gradient(135deg, #234b88 0%, #416ab0 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-eco {
  background: linear-gradient(135deg, #265c24 0%, #408e3c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Signature Section Heading with Blue Underline (Exact PDF Theme Style) */
.section-title {
  color: #172749;
  font-weight: 800;
  letter-spacing: -0.015em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.625rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4rem;
  height: 4px;
  background: linear-gradient(90deg, #416ab0 0%, #38bdf8 100%);
  border-radius: 2px;
}
.section-title-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Wide Letter-Spaced Subtitle (Echoing "C O M P L E T E" from PDF) */
.tracking-ultra {
  letter-spacing: 0.22em;
}

/* Subheading Tags */
.subheading-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #416ab0;
  background-color: #f0f5fc;
  border: 1px solid #bcd5f5;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.subheading-tag-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2e712a;
  background-color: #edf7ec;
  border: 1px solid #b8e2b5;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.subheading-tag-amber {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #92400e;
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* Signature Green ISO Badge from PDF */
.badge-iso-green {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: linear-gradient(135deg, #408e3c 0%, #2e712a 100%);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(64, 142, 60, 0.25);
}

/* Modern High-End Buttons */
.btn-primary-blue {
  background: linear-gradient(135deg, #416ab0 0%, #234b88 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(65, 106, 176, 0.25);
  transition: all 0.25s ease;
  border-radius: 8px;
}
.btn-primary-blue:hover {
  background: linear-gradient(135deg, #325696 0%, #172749 100%);
  box-shadow: 0 6px 20px rgba(65, 106, 176, 0.4);
  transform: translateY(-1px);
}

.btn-primary-green {
  background: linear-gradient(135deg, #408e3c 0%, #2e712a 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(64, 142, 60, 0.25);
  transition: all 0.25s ease;
  border-radius: 8px;
}
.btn-primary-green:hover {
  background: linear-gradient(135deg, #2f742c 0%, #214920 100%);
  box-shadow: 0 6px 20px rgba(64, 142, 60, 0.4);
  transform: translateY(-1px);
}

/* Glassmorphic Panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(188, 213, 245, 0.7);
  border-radius: 16px;
  box-shadow: 0 10px 30px -5px rgba(65, 106, 176, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-panel:hover {
  border-color: #416ab0;
  box-shadow: 0 18px 36px -5px rgba(65, 106, 176, 0.18);
  transform: translateY(-3px);
}

/* Industrial Spec Ribbon Cards (Page 4 of PDF) */
.pdf-card-industrial {
  background: #ffffff;
  border: 2px solid #bcd5f5;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(65, 106, 176, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pdf-card-industrial:hover {
  border-color: #416ab0;
  box-shadow: 0 16px 36px rgba(65, 106, 176, 0.14);
  transform: translateY(-4px);
}

.pdf-ribbon-tag {
  background: linear-gradient(135deg, #416ab0 0%, #234b88 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.25rem;
  border-radius: 0 0 14px 0;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(35, 75, 136, 0.25);
}

/* Standard Sober Card */
.sober-card {
  background: #ffffff;
  border: 1.5px solid #d4e4f7;
  border-radius: 14px;
  box-shadow: 0 2px 6px 0 rgba(65, 106, 176, 0.04);
  transition: all 0.25s ease-in-out;
}
.sober-card:hover {
  border-color: #416ab0;
  box-shadow: 0 10px 24px 0 rgba(65, 106, 176, 0.1);
  transform: translateY(-2px);
}

.sober-card-highlight {
  background: #ffffff;
  border-top: 4px solid #416ab0;
  border-left: 1.5px solid #d4e4f7;
  border-right: 1.5px solid #d4e4f7;
  border-bottom: 1.5px solid #d4e4f7;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(65, 106, 176, 0.06);
}

/* 4 Circular Feature Badges (Page 1 of PDF) */
.circle-feature-icon {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f5fc 100%);
  border: 2px solid #416ab0;
  color: #416ab0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 0 auto 0.75rem auto;
  box-shadow: 0 4px 12px rgba(65, 106, 176, 0.12);
}
.group:hover .circle-feature-icon {
  background: linear-gradient(135deg, #416ab0 0%, #234b88 100%);
  color: #ffffff;
  border-color: #38bdf8;
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 10px 25px rgba(65, 106, 176, 0.3);
}

/* Government Certificate Cards */
.govt-cert-card {
  background: #ffffff;
  border: 1.5px solid #bcd5f5;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(65, 106, 176, 0.05);
}
.govt-cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #416ab0 0%, #408e3c 100%);
}
.govt-cert-card:hover {
  border-color: #416ab0;
  box-shadow: 0 12px 28px rgba(65, 106, 176, 0.15);
  transform: translateY(-3px);
}

/* Process Timeline */
.process-step-node {
  position: relative;
  display: flex;
  flex-direction: column;
}
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9375rem;
  background: linear-gradient(135deg, #416ab0 0%, #234b88 100%);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(65, 106, 176, 0.35);
}

/* Dedicated Sticky Nav Items */
.nav-item {
  position: relative;
  transition: all 0.15s ease;
}
.nav-item.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.12);
}
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 3px;
  background-color: #38bdf8;
  border-radius: 2px 2px 0 0;
}

/* FAQ Accordion */
.accordion-header {
  cursor: pointer;
  user-select: none;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.accordion-item.open .accordion-content {
  max-height: 400px;
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}
.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: #416ab0;
}

/* Clean Form Controls */
.form-input {
  width: 100%;
  border: 1.5px solid #d4e4f7;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  color: #1e293b;
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus {
  outline: none;
  border-color: #416ab0;
  box-shadow: 0 0 0 3px rgba(65, 106, 176, 0.15);
}

/* Blueprint Micro-Grid Pattern */
.bg-grid-pattern {
  background-image: radial-gradient(rgba(65, 106, 176, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Bottom Signature Slogan Bar (Exactly like Page 1 & 12 of PDF) */
.pdf-bottom-bar {
  background: linear-gradient(90deg, #1e335e 0%, #416ab0 50%, #1e335e 100%);
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Scrollbar suppression utility for clean horizontal flows on mobile & laptop */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Modal Content Card Scrollability on Small Mobile Viewports */
.modal-content-card {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prevent iOS Safari auto-zoom on form inputs */
@media screen and (max-width: 768px) {
  input, select, textarea, .form-input {
    font-size: 16px !important;
  }
}

/* Touch target accessibility for mobile devices */
@media (pointer: coarse) {
  button, a.btn-primary-blue, a.btn-primary-green, .service-tab-btn, .project-filter-btn {
    min-height: 42px;
    touch-action: manipulation;
  }
}

/* Back to Top Floating Action Button */
.back-to-top-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #416ab0 0%, #1e335e 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(30, 51, 94, 0.35);
  z-index: 35;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-in-out;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
@media (min-width: 640px) {
  .back-to-top-btn {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(65, 106, 176, 0.45);
  background: linear-gradient(135deg, #325696 0%, #172749 100%);
}

/* Print Styles */
@media print {
  header, footer, .no-print, .modal-backdrop {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .sober-card, .pdf-card-industrial, .glass-panel {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

/* ==========================================================================
   Brand & Theme Solid Utility Fallbacks (Guarantees rich contrast & color)
   ========================================================================== */
.bg-brand-950 { background-color: #0f1a33 !important; }
.bg-brand-900 { background-color: #172749 !important; }
.bg-brand-800 { background-color: #1e335e !important; }
.bg-brand-700 { background-color: #274378 !important; }
.bg-brand-600 { background-color: #325696 !important; }
.bg-brand-500 { background-color: #416ab0 !important; }
.bg-brand-400 { background-color: #6f9fe3 !important; }
.bg-brand-50  { background-color: #f0f5fc !important; }

.text-brand-950 { color: #0f1a33 !important; }
.text-brand-900 { color: #172749 !important; }
.text-brand-800 { color: #1e335e !important; }
.text-brand-700 { color: #274378 !important; }
.text-brand-600 { color: #325696 !important; }
.text-brand-500 { color: #416ab0 !important; }
.text-brand-400 { color: #6f9fe3 !important; }
.text-brand-300 { color: #9ec4ee !important; }
.text-brand-200 { color: #c4dbf4 !important; }

.border-brand-950 { border-color: #0f1a33 !important; }
.border-brand-900 { border-color: #172749 !important; }
.border-brand-800 { border-color: #1e335e !important; }
.border-brand-700 { border-color: #274378 !important; }
.border-brand-600 { border-color: #325696 !important; }
.border-brand-500 { border-color: #416ab0 !important; }
.border-brand-200 { border-color: #c4dbf4 !important; }

.bg-eco-500 { background-color: #408e3c !important; }
.bg-eco-600 { background-color: #2f742c !important; }
.bg-eco-700 { background-color: #265c24 !important; }
.bg-eco-50  { background-color: #f0f9f1 !important; }

.text-eco-500 { color: #408e3c !important; }
.text-eco-600 { color: #2f742c !important; }
.text-eco-700 { color: #265c24 !important; }

.border-eco-500 { border-color: #408e3c !important; }
.border-eco-200 { border-color: #bce4c1 !important; }

/* Subpage Hero Banner Rich Gradient */
.page-hero-banner {
  background: linear-gradient(135deg, #091326 0%, #172749 50%, #0f172a 100%) !important;
  color: #ffffff !important;
}

/* Nav & Top Bar Guarantees */
nav.sticky {
  background-color: #172749 !important;
}
