/* Horizon Aerial Intelligence - Main Stylesheet */

:root {
  /* Colors */
  --color-bg: #0b0d10;
  --color-card: rgba(20, 25, 32, 0.65);
  --color-card-border: rgba(207, 167, 81, 0.15);
  --color-gold: #cfa751;
  --color-gold-hover: #e5be69;
  --color-blue: #00e5ff;
  --color-blue-hover: #33ebff;
  --color-text: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-text-dark: #1f2937;
  
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Effects */
  --glass-blur: blur(16px);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Base resets & theme */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #151b22 0%, var(--color-bg) 60%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.75em;
}

p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }

/* Container layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background-color: var(--color-gold);
  color: #0b0d10;
}

.btn-primary:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(207, 167, 81, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Badges & Pills */
.badge {
  display: inline-block;
  padding: 0.35em 0.85em;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 50px;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.badge-gold {
  background-color: rgba(207, 167, 81, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(207, 167, 81, 0.3);
}

.badge-blue {
  background-color: rgba(0, 229, 255, 0.15);
  color: var(--color-blue);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

.code-badge {
  font-family: monospace;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: var(--color-blue);
}

/* Glassmorphism Cards */
.card {
  background: var(--color-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.glass-card {
  background: rgba(20, 25, 32, 0.45);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Main Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 13, 16, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.logo-svg {
  width: 44px;
  height: 44px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.brand-sub {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-gold);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover {
  color: #fff;
}

.nav-link.active {
  color: var(--color-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-gold);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: var(--transition);
}

/* Main content setup */
.main-content {
  flex-grow: 1;
  padding-top: 80px; /* Offset for fixed header */
}

/* App Sections Switcher */
.app-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.app-section.active {
  display: block;
}

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

/* ================== HERO BANNER ================== */
.hero-banner {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(207, 167, 81, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-banner .hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 10;
}

.hero-text-wrapper h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Animated HUD Display in Hero */
.hero-graphic-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hud-display {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(11, 13, 16, 0.4);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.05);
}

.hud-circle-outer {
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  border: 1px stroke rgba(207, 167, 81, 0.2);
  border-style: dashed;
  animation: spinClockwise 25s linear infinite;
}

.hud-circle-inner {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.1);
  border-left-color: var(--color-blue);
  border-right-color: var(--color-blue);
  animation: spinCounterClockwise 15s linear infinite;
}

.hud-scanner {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 229, 255, 0.15) 0deg, transparent 90deg, transparent 360deg);
  animation: rotateScan 4s linear infinite;
}

.hud-drone-center {
  width: 100px;
  height: 100px;
  position: relative;
  z-index: 5;
  animation: hoverFloat 4s ease-in-out infinite;
}

.hud-drone-svg {
  width: 100%;
  height: 100%;
}

.hud-stats {
  position: absolute;
  bottom: -40px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

.hud-stat-item {
  background: rgba(20, 25, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow);
}

.hud-stat-item .label {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.hud-stat-item .val {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
}

@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes rotateScan {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hoverFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Trust Bar */
.trust-bar {
  background: rgba(20, 25, 32, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1.5rem 0;
}

.trust-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
}

.icon-gold {
  color: var(--color-gold);
}

/* ================== SERVICES ================== */
.services-section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header .subtitle {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-top: 0.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--color-card-border);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  background: rgba(20, 25, 32, 0.9);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  background: rgba(207, 167, 81, 0.1);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.bullet-list {
  list-style: none;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.bullet-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-size: 1.1rem;
  line-height: 1;
}

.price-hint {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-blue);
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

/* Norfolk Market Segment */
.norfolk-market {
  padding: 2rem 0 6rem;
}

.row-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.col-half {
  display: flex;
  flex-direction: column;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.stat-box .number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-gold);
}

.stat-box .stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* GIS Map Box Mockup */
.gis-box {
  background: #10141b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gis-header {
  background: #19202a;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gis-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.red { background-color: var(--color-danger); }
.dot.yellow { background-color: var(--color-warning); }
.dot.green { background-color: var(--color-success); }

.gis-title {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-left: 0.5rem;
}

.gis-body {
  padding: 1rem;
}

.gis-map-mesh {
  height: 200px;
  background-color: #0d1015;
  background-image: radial-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.elevation-contour {
  position: absolute;
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.erosion-zone {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(239, 68, 68, 0.2);
  border: 1px dashed var(--color-danger);
  color: var(--color-danger);
  padding: 0.25rem 0.5rem;
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: bold;
}

.laser-pointer {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--color-blue);
  border-radius: 50%;
  top: 40%;
  left: 60%;
  box-shadow: 0 0 10px var(--color-blue);
  animation: scanPoint 6s infinite alternate ease-in-out;
}

@keyframes scanPoint {
  0% { top: 20%; left: 20%; }
  50% { top: 70%; left: 80%; }
  100% { top: 40%; left: 60%; }
}

.gis-legend {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  font-family: monospace;
  font-size: 0.75rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-indicator {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.color-indicator.green { background-color: var(--color-success); }
.color-indicator.red { background-color: var(--color-danger); }

/* ================== QUOTE & BOOKING ================== */
.quote-booking-section {
  padding: 4rem 0 6rem;
}

.quote-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.quote-card-calculator h3,
.quote-card-result h3 {
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Forms styling */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 8px rgba(207, 167, 81, 0.2);
}

.quantity-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.unit-label {
  position: absolute;
  right: 1rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Slider Controls */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin-top: 1rem;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-gold);
  cursor: pointer;
  transition: var(--transition);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(207, 167, 81, 0.6);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--color-gold);
  width: 16px;
  height: 16px;
}

/* Quote Results Layout */
.quote-card-result {
  background: rgba(207, 167, 81, 0.03);
  border-color: rgba(207, 167, 81, 0.25);
}

.price-display-wrapper {
  text-align: center;
  padding: 1rem 0;
}

.price-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold);
}

.price-value-container {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin: 0.5rem 0;
}

.price-value-container .currency {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: #fff;
  margin-right: 0.2rem;
}

.price-value-container .price {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.price-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1.5rem 0;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.hidden {
  display: none !important;
}

.alert {
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ================== CLIENT PORTAL ================== */
.portal-container {
  padding: 3rem 1.5rem 6rem;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.portal-user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portal-user-profile .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #0b0d10;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-account-type {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.portal-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Status light indicators */
.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.indicator.pulse-green {
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  animation: pulseLight 2s infinite;
}

.indicator.pulse-amber {
  background-color: var(--color-warning);
  box-shadow: 0 0 8px var(--color-warning);
  animation: pulseLight 2s infinite;
}

@keyframes pulseLight {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Portal Workspace Grid */
.portal-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

.portal-sidebar h3,
.portal-main-view h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.project-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.project-item.active {
  background: rgba(207, 167, 81, 0.05);
  border-color: var(--color-gold);
}

.project-item-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.project-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.project-item-meta .date {
  color: var(--color-text-muted);
}

.status-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.status-processing {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

/* Selected Project Detail view */
.portal-main-view {
  min-height: 500px;
}

.portal-project-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.portal-project-title-bar .meta {
  font-size: 0.85rem;
  margin-top: -0.25rem;
}

.portal-actions {
  display: flex;
  gap: 0.75rem;
}

/* NDVI Slider Widget */
.slider-wrapper {
  margin: 2rem 0;
}

.image-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  user-select: none;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ndvi-image {
  background-color: #10151c; /* Fallback */
}

.rgb-image {
  background-color: #1a222e; /* Fallback */
  border-right: 2px solid var(--color-blue);
}

.overlay-label {
  position: absolute;
  top: 1rem;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ndvi-label {
  right: 1rem;
  background: rgba(16, 185, 129, 0.7);
  color: #fff;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.rgb-label {
  left: 1rem;
  background: rgba(11, 13, 16, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: var(--color-blue);
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 10px var(--color-blue);
}

.handle-line {
  position: absolute;
  height: 100%;
  width: 2px;
  background: #fff;
  left: 1px;
}

.slider-handle::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--color-blue);
  border: 2px solid #fff;
  border-radius: 50%;
  color: #0b0d10;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slider-instruction {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Agronomy readout metrics grid */
.agronomy-readout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.readout-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.25rem;
}

.readout-box .label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.readout-box .value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  display: block;
}

.readout-box .trend {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.project-narrative h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* ================== PILOT OPERATIONS ================== */
.pilot-container {
  padding: 3rem 1.5rem 6rem;
}

.pilot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.pilot-callsign {
  font-size: 0.85rem;
  color: var(--color-gold);
}

.fleet-status-bar {
  display: flex;
  gap: 1.5rem;
}

.status-light-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
}

.pilot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.card-desc {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* Checklist Styling */
.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.check-item {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.check-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.check-item input[type="checkbox"] {
  accent-color: var(--color-blue);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.check-text strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}

.check-text .desc {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

/* Auth Output */
.rams-auth-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--color-success);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  animation: fadeIn 0.4s ease-out forwards;
}

.auth-box-header {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.auth-code-container {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  padding: 0.75rem;
  display: inline-flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.auth-code-container .auth-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.auth-code-container .auth-code {
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-blue);
}

.auth-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Flight logs table & quick logging */
.pilot-logs-fleet-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.logs-table-wrapper {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table th {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.logs-form-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.form-control-sm {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

.col-third {
  width: 33.33%;
}

.pilot-form-row {
  margin-top: 1rem;
}

/* Fleet items */
.fleet-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fleet-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fleet-info {
  display: flex;
  flex-direction: column;
}

.fleet-info strong {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #fff;
}

.fleet-info span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ================== BRANDING HUB ================== */
.brand-container {
  padding: 3rem 1.5rem 6rem;
}

.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.style-row {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.25rem;
}

.style-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.style-row h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--color-gold);
}

.color-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.swatch {
  height: 80px;
  border-radius: 6px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.swatch .hex {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: bold;
}

.swatch-label {
  font-size: 0.6rem;
  color: var(--color-text-muted);
}

.typography-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.font-item {
  display: flex;
  flex-direction: column;
}

.font-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.font-preview {
  font-size: 1.2rem;
  color: #fff;
  margin: 0.1rem 0;
}

.font-use {
  font-size: 0.7rem;
  color: var(--color-blue);
}

.voice-desc {
  font-style: italic;
  font-size: 0.9rem;
}

/* Business Card Mockup - 3D flipping card */
.business-card-container {
  width: 100%;
  max-width: 400px;
  height: 230px;
  perspective: 1000px;
  margin: 2rem auto;
}

.b-card {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  overflow: hidden;
}

.b-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.b-card-front {
  background: linear-gradient(135deg, #0d1117 0%, #06080b 100%);
  transform: rotateY(0deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.b-card-back {
  background: linear-gradient(135deg, #090c0f 0%, #151b22 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Front Side Card Inner */
.b-card-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-logo-svg {
  width: 48px;
  height: 48px;
}

.card-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
}

.card-footer-info .tagline {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.card-footer-info .region {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Back Side Card Inner */
.pilot-details {
  display: flex;
  flex-direction: column;
}

.pilot-details .name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.pilot-details .title {
  font-size: 0.75rem;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-divider {
  border: 0;
  height: 1px;
  background: rgba(207, 167, 81, 0.2);
  margin: 0.5rem 0;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
}

.contact-item .label {
  color: var(--color-text-muted);
}

.contact-item .val {
  font-family: monospace;
  color: #fff;
}

/* Flip Trigger */
.business-card-container.flipped .b-card-front {
  transform: rotateY(-180deg);
}

.business-card-container.flipped .b-card-back {
  transform: rotateY(0deg);
}

.card-flipper-btn {
  display: flex;
  justify-content: center;
}

/* Social media campaigns */
.social-copywriter {
  grid-column: 1 / -1;
}

.copy-campaign {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.campaign-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.campaign-header h4 {
  margin: 0;
  font-size: 1.05rem;
}

.campaign-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.campaign-tag.linkedin {
  background-color: rgba(10, 102, 194, 0.15);
  color: #0a66c2;
  border: 1px solid rgba(10, 102, 194, 0.3);
}

.campaign-tag.instagram {
  background-color: rgba(225, 48, 108, 0.15);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.3);
}

.campaign-body pre {
  font-family: var(--font-body);
  font-size: 0.8rem;
  white-space: pre-wrap;
  background: #080d14;
  padding: 1rem;
  border-radius: 6px;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 0.75rem;
}

/* Digital Flyer Section */
.flyer-preview-container {
  background: #fff;
  color: #333;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.414; /* A5 Aspect ratio */
  margin: 1.5rem auto;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

.flyer-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.flyer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0b0d10;
  padding-bottom: 0.5rem;
}

.flyer-logo-marker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.flyer-logo-marker span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.65rem;
  color: #0b0d10;
  letter-spacing: 0.05em;
}

.flyer-logo-svg {
  width: 24px;
  height: 24px;
}

.flyer-header .contact-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--color-gold);
}

.flyer-hero {
  background-color: #0b0d10;
  color: #fff;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  margin: 0.75rem 0;
}

.flyer-hero h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.2rem;
  letter-spacing: 0.05em;
}

.flyer-hero h5 {
  font-size: 0.75rem;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flyer-bullets {
  text-align: left;
}

.flyer-bullet {
  font-size: 0.7rem;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
}

.flyer-features {
  display: flex;
  justify-content: space-around;
  margin-bottom: 0.5rem;
}

.f-feat {
  font-size: 0.65rem;
  font-weight: bold;
  color: #0b0d10;
  background-color: rgba(207, 167, 81, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.flyer-footer {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flyer-footer-left {
  display: flex;
  flex-direction: column;
}

.flyer-footer-left strong {
  font-size: 0.65rem;
  color: #6b7280;
}

.flyer-footer-left span {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0b0d10;
}

.flyer-qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-svg {
  width: 50px;
  height: 50px;
}

.flyer-qr-code span {
  font-size: 0.5rem;
  font-weight: bold;
  color: #374151;
  margin-top: 0.1rem;
}

/* ================== GLOBAL FOOTER ================== */
.main-footer {
  background: #06080a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-col .logo {
  margin-bottom: 1rem;
}

.brand-statement {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-links-col h4,
.footer-contact-col h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col ul li {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.footer-links-col ul li a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links-col ul li a:hover {
  color: var(--color-gold);
}

.footer-contact-col p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ================== PRINT STYLES ================== */
@media print {
  body * {
    visibility: hidden;
  }
  .digital-flyer-panel,
  .digital-flyer-panel *,
  .flyer-preview-container,
  .flyer-preview-container * {
    visibility: visible;
  }
  
  .digital-flyer-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .flyer-preview-container {
    box-shadow: none !important;
    margin: 0 auto !important;
    width: 148mm;
    height: 210mm; /* A5 */
    border: none !important;
  }
  
  .flyer-print-btn,
  .card-desc,
  h3 {
    display: none !important;
  }
}

/* ================== RESPONSIVENESS ================== */
@media (max-width: 992px) {
  .hero-banner .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .hero-graphic-wrapper {
    margin-top: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .row-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .quote-container {
    grid-template-columns: 1fr;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .pilot-grid {
    grid-template-columns: 1fr;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0b0d10;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }

  .nav-menu.mobile-active {
    display: flex;
  }

  .nav-link.active::after {
    display: none;
  }

  .header-cta {
    display: none; /* Hide CTA button in header on mobile */
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-text-wrapper h1 {
    font-size: 2.5rem;
  }

  .agronomy-readout-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .color-swatches {
    grid-template-columns: repeat(2, 1fr);
  }
}
