/* ==========================================================================
   1. GLOBAL TOKENS & DESIGN RE-BUILDS
   ========================================================================== */
:root {
  /* Falcon Corporate Brand Palette */
  --primary-blue: #0A66C2;     /* Core identity brand blue */
  --light-blue: #00AEEE;       /* Electric accent sky blue */
  --text-dark: #333333;
  --text-muted: #666666;
  --text-light: #FFFFFF;
  --bg-light: #F4F7F6;
  --bg-white: #FFFFFF;
  
  /* System Metrics & Shadow Maps */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --header-height: 80px;
  --radius: 5px;
}

/* Base Normalization Layers */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  padding-top: var(--header-height); /* Safeguards hero markup from being covered by sticky nav */
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Reusable Core Layout Wrapper */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   2. REUSABLE SYSTEM CORE HEADER COMPONENTS
   ========================================================================== */
.main-header {
  background-color: var(--bg-white);
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

/* Header Interactive Logo Engine Elements */
.header-logo-a {
  display: inline-block;
  padding: 8px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.header-logo-img {
  height: 60px; /* Prominent vector logo size footprint */
  width: auto;
  display: block;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.08)); 
  transition: all 0.3s ease;
}

.header-logo-a:hover .header-logo-img {
  transform: scale(1.04); /* Smooth micro-lift execution on hover */
  filter: drop-shadow(0px 4px 8px rgba(0, 102, 192, 0.15)); /* Brand blue subtle drop glow */
}

/* Main Core Inline Menu List Navigation links */
.header-nav-ul {
  display: flex;
  gap: 30px;
}

.header-nav-link {
  font-weight: 500;
  color: var(--text-dark);
}

.header-nav-link:hover {
  color: var(--primary-blue);
}

/* Login Operational Authentication Triggers */
.header-actions {
  display: flex;
  align-items: center;
}

.btn-login {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.btn-login:hover {
  background-color: var(--primary-blue);
  color: var(--text-light);
}

/* ==========================================================================
   3. LANDING CORE CONTENT LAYOUT ENGINE
   ========================================================================== */

/* --- Hero Showcase Frame --- */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
  color: var(--text-light);
  padding: 120px 0;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  display: inline-block;
  background-color: var(--bg-white);
  color: var(--primary-blue);
  padding: 15px 35px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --- Core Competency Matrix Showcase --- */
.services {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--bg-light);
  padding: 45px 35px;
  border-radius: 10px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #E2E8F0;
  box-shadow: var(--shadow-md);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--light-blue);
  margin-bottom: 25px;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-blue);
}

.service-card p {
  color: #555555;
  font-size: 1rem;
}

/* --- Global Institutional Footer Area --- */
.main-footer {
  background-color: #222222;
  color: #AAAAAA;
  padding: 60px 0;
  text-align: center;
}

.footer-logo {
  height: 40px;
  width: auto;
  opacity: 0.65;
  margin: 0 auto 25px auto;
}

.footer-text {
  font-size: 0.9rem;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   4. RESPONSIVE FLUID MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .main-header { padding: 0 4%; }
  .header-nav-ul { gap: 20px; }
}

@media (max-width: 768px) {
  :root { --header-height: 70px; }
  
  /* Basic Collapse toggle framework strategy for smaller screen displays */
  .header-nav { display: none; } 
  
  .hero { padding: 80px 0; }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 2rem; }
  .section-subtitle { margin-bottom: 3rem; }
  
  .services-grid { 
    grid-template-columns: 1fr; 
    gap: 20px;
  }
  
  .service-card { padding: 35px 25px; }
}

/* ==========================================================================
   5. PRODUCTION DEPLOYMENT ENGINE DASHBOARD COMPONENTS
   ========================================================================== */

/* Dashboard Layout Overrides inside the global container */
.container h2 {
  margin-top: 30px;
  color: var(--text-dark);
  font-size: 2rem;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.container h3 {
  color: var(--text-dark);
  font-size: 1.35rem;
  margin-bottom: 20px;
}

/* Action Control Bar Wrapper */
.action-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 35px;
  background-color: var(--bg-white);
  padding: 20px;
  border-radius: 8px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  border: 1px solid #E2E8F0;
}

/* Form structure constraints */
.inline-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  gap: 8px;
  align-items: center;
}

/* --- Dashboard Specific Button Variations --- */
/* Master blueprint buttons inherit from global styles, overridden below */
.action-bar button,
.inline-form button {
  font-family: var(--font-main);
  padding: 10px 22px;
  font-size: 0.95rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

/* Primary Form Submit Button */
.action-bar button[type="submit"]:not(.secondary):not(.warning) {
  background-color: var(--primary-blue);
  color: var(--text-light);
}

.action-bar button[type="submit"]:not(.secondary):not(.warning):hover {
  background-color: #08529c;
  box-shadow: var(--shadow-sm);
}

/* Secondary Button Mode Override */
button.secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue) !important;
  padding: 8px 20px !important; /* Visual matching with border offsets */
}

button.secondary:hover {
  background-color: var(--primary-blue);
  color: var(--text-light);
}

/* Alert Warning Button Mode Override */
button.warning {
  background-color: transparent;
  color: #E08535;
  border: 2px solid #E08535;
  padding: 8px 20px !important;
}

button.warning:hover {
  background-color: #E08535;
  color: var(--text-light);
}

/* Action: Success (Upload) Mini Trigger Button */
button.success {
  background-color: #188038;
  color: var(--text-light);
  padding: 6px 14px !important;
  font-size: 0.85rem !important;
}

button.success:hover {
  background-color: #137333;
}

/* Action: Danger (Drop) Mini Trigger Button */
button.danger {
  background-color: #D93025;
  color: var(--text-light);
  padding: 6px 14px !important;
  font-size: 0.85rem !important;
}

button.danger:hover {
  background-color: #B31412;
}

/* --- Data Grid & Table Layouts --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background-color: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #E2E8F0;
}

th {
  background-color: #ECEFF1;
  font-weight: 600;
  color: var(--text-dark);
}

tr:hover td {
  background-color: rgba(244, 247, 246, 0.7);
}

/* Interactive Monospace File Code Elements */
code {
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.9rem;
  color: #C7254E;
  border: 0px solid #E2E8F0;
}

/* --- Dynamic Status Badging Systems --- */
.status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

.status-Pending {
  background-color: #FEF7E0;
  color: #B06000;
}

.status-Good {
  background-color: #E6F4EA;
  color: #137333;
}

.status-Bad {
  background-color: #FCE8E6;
  color: #C5221F;
}

/* --- INTERACTIVE LOADING OVERLAY SCREEN SPINNERS --- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* State toggle triggered via intercepting JS runtime */
.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mechanical CSS Core Rotator Graphic */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--bg-light);
  border-top: 5px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}