/* Meridian Cargo Checkers - White & Red Theme Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Tokens - White & Red Palette */
  --bg-main: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFF1F2;
  --bg-glass: rgba(255, 255, 255, 0.9);
  
  --primary-red: #DC2626;      /* Vibrant Maritime Red */
  --primary-red-hover: #B91C1C;/* Deep Red */
  --primary-red-light: #FEF2F2;/* Subtle Red Tint */
  --accent-rose: #E11D48;
  --accent-amber: #D97706;
  --status-green: #16A34A;
  
  --text-main: #0F172A;        /* Dark Charcoal for readability */
  --text-muted: #64748B;       /* Muted Slate Gray */
  --text-light: #F8FAFC;
  
  --border-light: #E2E8F0;
  --border-red: rgba(220, 38, 38, 0.25);
  --border-glow: rgba(220, 38, 38, 0.4);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Elevations & Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-red: 0 4px 20px rgba(220, 38, 38, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}


/* Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon-wrap {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-red), var(--accent-rose));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-logo-img-footer {
  height: 46px;
  width: auto;
  object-fit: contain;
  background: #FFFFFF;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.brand-logo:hover .brand-logo-img-footer {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--text-main);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--primary-red);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-red);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-hover) 100%);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(220, 38, 38, 0.4);
  background: linear-gradient(135deg, #EF4444 0%, var(--primary-red) 100%);
}

.btn-outline {
  background: var(--bg-white);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background: var(--primary-red-light);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Layout Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Common */
.section-padding {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-red-light);
  border: 1px solid var(--border-red);
  color: var(--primary-red);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-title span {
  color: var(--primary-red);
}

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

/* HERO SECTION (White Background with Red Accents) */
.hero-section {
  position: relative;
  padding: 80px 0 100px 0;
  background: radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.06) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(225, 29, 72, 0.04) 0%, transparent 50%),
              #FFFFFF;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-headline span {
  color: var(--primary-red);
}

.hero-subheadline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-red);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-image-wrap {
  position: relative;
}

.hero-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(220, 38, 38, 0.1);
}

.hero-img-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-img-box:hover img {
  transform: scale(1.03);
}

.floating-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-red);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
}

.floating-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-red-light);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.floating-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.floating-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* CORE SERVICES SECTION */
.services-section {
  background: var(--bg-main);
  position: relative;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-red);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-red);
  box-shadow: var(--shadow-red);
  background: var(--bg-card-hover);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  background: var(--primary-red-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  font-size: 1.5rem;
  margin-bottom: 24px;
  border: 1px solid var(--border-red);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 24px;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.service-features li::before {
  content: "✓";
  color: var(--primary-red);
  font-weight: bold;
}

.service-link {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  cursor: pointer;
}

.service-link:hover {
  gap: 10px;
  color: var(--primary-red-hover);
}

/* OPERATIONS SECTION & TABLET SIMULATOR */
.operations-section {
  position: relative;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.ops-content-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ops-item {
  display: flex;
  gap: 20px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  padding: 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.ops-item:hover {
  border-color: var(--primary-red);
  transform: translateX(6px);
  background: #FFF;
  box-shadow: var(--shadow-sm);
}

.ops-item-num {
  width: 44px;
  height: 44px;
  background: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.ops-item-text h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.ops-item-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Rugged Tablet Simulator Frame (Red Industrial Accent) */
.tablet-frame {
  background: #0F172A;
  border: 12px solid #1E293B;
  border-radius: 28px;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(220, 38, 38, 0.2);
  overflow: hidden;
  position: relative;
}

.tablet-header-bar {
  background: #182234;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: #94A3B8;
}

.tablet-title {
  font-weight: 700;
  color: var(--accent-rose);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tablet-body {
  padding: 20px;
  background: #0F172A;
  min-height: 380px;
}

.tablet-log-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--primary-red);
  color: #FFF;
  border-color: var(--primary-red);
}

.log-entry-box {
  background: #182234;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  font-family: monospace;
  font-size: 0.82rem;
}

.log-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.log-status {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.72rem;
}

.status-passed { background: rgba(22, 163, 74, 0.25); color: #4ADE80; }
.status-flagged { background: rgba(220, 38, 38, 0.3); color: #FCA5A5; }

.log-btn-trigger {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-rose));
  color: #FFFFFF;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.log-btn-trigger:hover {
  filter: brightness(1.1);
}

/* UTILITY LINKS / QUICK ACCESS SECTION */
.utility-section {
  background: var(--bg-main);
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.utility-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.utility-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-red);
  box-shadow: var(--shadow-red);
}

.utility-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background: var(--primary-red-light);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 1px solid var(--border-red);
}

.utility-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.utility-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ABOUT US SPECIFIC STYLES */
.about-hero {
  position: relative;
  padding: 70px 0 60px 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #FEF2F2 100%);
  border-bottom: 1px solid var(--border-light);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.story-content p strong {
  color: var(--text-main);
}

.workforce-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.workforce-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.workforce-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-red);
  margin-bottom: 4px;
}

.workforce-role {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 700;
}

/* HQ Section */
.hq-box {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.hq-details h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

.hq-list {
  list-style: none;
  margin-top: 20px;
}

.hq-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
}

.hq-list li span:first-child {
  color: var(--text-muted);
}

.hq-list li span:last-child {
  color: var(--primary-red);
  font-weight: 700;
}

/* MODALS FOR UTILITY LINKS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-white);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-red);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary-red);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.2);
  background: #FFF;
}

/* MODERN FOOTER SECTION (React Animated Component Port) */
.footer-section {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 60px auto 0 auto;
  border-top-left-radius: 2.5rem;
  border-top-right-radius: 2.5rem;
  border-top: 1px solid rgba(220, 38, 38, 0.3);
  background: radial-gradient(45% 128px at 50% 0%, rgba(220, 38, 38, 0.15), transparent), #0F172A;
  padding: 64px 32px 48px 32px;
  color: #94A3B8;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.footer-top-glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 33%;
  height: 2px;
  transform: translate(-50%, -50%);
  background: rgba(220, 38, 38, 0.8);
  border-radius: 9999px;
  filter: blur(4px);
}

.footer-grid-layout {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 48px;
  width: 100%;
  align-items: start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.copyright-text {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-top: 8px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-list a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link-list a:hover {
  color: var(--primary-red);
  transform: translateX(3px);
}

.social-link svg {
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: scale(1.2);
  color: var(--primary-red);
}

.footer-bottom-bar {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* AUTH & SIGN IN PAGE STYLES */
.auth-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-main) 100%);
  overflow: hidden;
  padding: 60px 0;
}

.accent-lines-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  overflow: hidden;
}

.hline, .vline {
  position: absolute;
  background: var(--border-red);
  will-change: transform, opacity;
}

.hline {
  left: 0; right: 0; height: 1px;
  transform: scaleX(0);
  transform-origin: 50% 50%;
  animation: drawX .8s cubic-bezier(.22,.61,.36,1) forwards;
}

.vline {
  top: 0; bottom: 0; width: 1px;
  transform: scaleY(0);
  transform-origin: 50% 0%;
  animation: drawY .9s cubic-bezier(.22,.61,.36,1) forwards;
}

.hline:nth-child(1) { top: 18%; animation-delay: .12s; }
.hline:nth-child(2) { top: 50%; animation-delay: .22s; }
.hline:nth-child(3) { top: 82%; animation-delay: .32s; }
.vline:nth-child(4) { left: 22%; animation-delay: .42s; }
.vline:nth-child(5) { left: 50%; animation-delay: .54s; }
.vline:nth-child(6) { left: 78%; animation-delay: .66s; }

.hline::after, .vline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.4), transparent);
  opacity: 0;
  animation: shimmer .9s ease-out forwards;
}

.hline:nth-child(1)::after { animation-delay: .12s; }
.hline:nth-child(2)::after { animation-delay: .22s; }
.hline:nth-child(3)::after { animation-delay: .32s; }
.vline:nth-child(4)::after { animation-delay: .42s; }
.vline:nth-child(5)::after { animation-delay: .54s; }
.vline:nth-child(6)::after { animation-delay: .66s; }

@keyframes drawX { 0% { transform: scaleX(0); opacity: 0; } 60% { opacity: .95; } 100% { transform: scaleX(1); opacity: .7; } }
@keyframes drawY { 0% { transform: scaleY(0); opacity: 0; } 60% { opacity: .95; } 100% { transform: scaleY(1); opacity: .7; } }
@keyframes shimmer { 0% { opacity: 0; } 35% { opacity: .3; } 100% { opacity: 0; } }

.card-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(.22,.61,.36,1) 0.3s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(220, 38, 38, 0.12);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-icon-badge {
  width: 60px;
  height: 60px;
  background: var(--primary-red-light);
  border: 1px solid var(--border-red);
  color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.auth-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-role-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-main);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: var(--primary-red);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-left: 42px;
}

.input-with-icon .input-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password-btn:hover {
  color: var(--primary-red);
}

.auth-separator {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.auth-separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-light);
}

.auth-separator span {
  position: relative;
  background: #FFFFFF;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.sso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .ops-grid, .story-grid, .hq-box {
    grid-template-columns: 1fr;
  }
  .services-grid, .utility-grid {
    grid-template-columns: 1fr 1fr;
  }
  .workforce-breakdown {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid-layout {
    grid-template-columns: 1fr;
  }
  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-headline {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .services-grid, .utility-grid, .workforce-breakdown {
    grid-template-columns: 1fr;
  }
  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* AUTH ERROR BANNER */
.auth-error-banner {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

