/* 
  MADECON Corporate Website Styling
  Adhering to strict corporate brand guidelines:
  - Navy text: #1A365D
  - White & Slate Backgrounds: #FFFFFF / #F8FAFC / #F1F5F9
  - Red Buttons/CTAs: #E50505 (Hover to deeper Crimson #B30404 instantly)
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300&family=Oswald:wght@500&display=swap');

:root {
  /* Color Palette */
  --navy: #1A365D;
  --navy-light: #2a4d7c;
  --navy-rgb: 26, 54, 93;
  --white: #FFFFFF;
  --slate-100: #F8FAFC;
  --slate-200: #F1F5F9;
  --slate-300: #E2E8F0;
  --slate-600: #475569;
  --slate-800: #1E293B;
  --red: #E50505;
  --red-hover: #B30404; /* Deeper Crimson hover */
  
  /* Fonts */
  --font-headings: 'Oswald', sans-serif;
  --font-body: 'Barlow', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout Metrics */
  --radius-sm: 0px; /* Force perfectly square corners */
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(26, 54, 93, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(26, 54, 93, 0.08), 0 2px 4px -1px rgba(26, 54, 93, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(26, 54, 93, 0.1), 0 8px 10px -6px rgba(26, 54, 93, 0.05);
}

/* Reset & Base Elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 144px !important;
}

/* Typography Overhaul - Strict Oswald 500 & Barlow 300 mapping */
h1, h2, h3, h4, h5, h6, .nav-link, .btn, .logo-subtext, .corp-name, .corp-estd, .split-headline, .subtitle-callout {
  font-family: var(--font-headings) !important;
  font-weight: 500 !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  line-height: 1.2;
}

p, span, li, input, textarea, td, th, label, .form-label, .split-subheadline {
  font-family: var(--font-body) !important;
  font-weight: 300 !important;
}

p {
  color: var(--slate-600);
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  z-index: 1000;
}

/* Header & Sticky Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 144px; /* Fixed height for stacked layout */
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  /* Razor-thin subtle bottom border to the sticky header */
  border-bottom: 1px solid rgba(26, 54, 93, 0.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  transition: var(--transition-normal);
}

.header.scrolled .nav-container {
  height: 100%;
}

/* Logo styling - Constrained to max-height 45px */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding-top: 12px;
  text-decoration: none;
}

.logo img {
  max-height: 45px;
  width: auto;
  display: block;
}

.logo-subtext {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: none !important; /* Remove vertical border */
  padding-left: 0 !important;
  line-height: 1.25;
  text-align: center;
}

.corp-name {
  font-family: var(--font-headings);
  font-size: 0.9rem; /* Bold and tracking-wide */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--navy);
  white-space: nowrap;
  text-align: center;
}

.corp-estd {
  font-family: var(--font-headings);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1px;
  text-align: center;
}

/* Navigation Links Style - HOME | ABOUT US | OUR DIVISIONS (Dropdown) | SECTORS | CAREERS */
.nav {
  width: 100%;
  background-color: #F3F4F6; /* Flat light-slate strip */
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0px !important;
  border: none !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none !important;
  list-style-type: none !important;
  gap: 2.5rem;
  padding: 0 2rem !important;
  margin: 0 !important;
  width: 100%;
  max-width: 1280px;
}

.nav-item {
  position: relative;
  list-style: none !important;
  list-style-type: none !important;
}

.nav-link {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  position: relative;
}

/* Smooth CSS pseudo-element underline effect sliding from center */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--red);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Dropdown Menu Architecture */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 320px;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 0px !important; /* Remove dropdown structure roundness */
  box-shadow: var(--shadow-lg);
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1001;
}

.dropdown-item {
  width: 100%;
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.dropdown-link {
  display: block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.15s ease-in-out;
}

.dropdown-link:hover {
  background-color: var(--red) !important;
  color: var(--white) !important;
}

/* Show dropdown on hover (for desktop) */
@media (min-width: 1025px) {
  .nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

/* Buttons - Red #E50505 CTA rules, pill corners, instant hover transition */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px !important; /* Curved Pill Borders */
  cursor: pointer;
  border: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background-color: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background-color: var(--white) !important;
  color: var(--red) !important;
  border-color: var(--red) !important;
  transition: all 0s !important; /* Instant transition */
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background-color: var(--navy) !important;
  color: var(--white) !important;
  border-color: var(--navy) !important;
  transition: all 0s !important; /* Instant transition */
}

.hero-slider .btn-secondary:hover {
  background-color: var(--white) !important;
  color: var(--navy) !important;
  border-color: var(--white) !important;
  transition: all 0s !important; /* Instant transition */
}

.btn:active {
  transform: scale(0.98) !important;
}

/* Header secure button */
.btn-header {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* Hamburger mobile menu button */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* Layout Elements */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--slate-200);
}

.bg-white {
  background-color: var(--white);
}

.bg-slate {
  background-color: var(--slate-100);
}

.grid {
  display: grid;
  gap: 2.5rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Subsections layout for Division Detail cards */
.division-section {
  margin-top: 0;
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.division-header {
  border-left: 4px solid var(--red);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.division-header h3 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.division-header span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-600);
  font-weight: 600;
}

.division-body p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Coating Procedure Step cards */
.procedure-box {
  margin-top: 2rem;
  background-color: var(--slate-100);
  border-radius: var(--radius-sm);
  padding: 2rem;
  border: 1px dashed var(--slate-300);
}

.procedure-box h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.procedure-steps {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.procedure-step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.procedure-step-badge {
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-headings);
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Quick Navigation Links */
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.quick-nav-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--slate-200);
}

.quick-nav-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  z-index: 1;
}

.quick-nav-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 2;
}

.quick-nav-card:hover .quick-nav-card-img {
  transform: scale(1.05); /* Subtle scale up */
  opacity: 0.3;
}

.quick-nav-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.quick-nav-card-content h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.quick-nav-card-content span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  background-color: var(--red);
  padding: 0.35rem 0.75rem;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
}

.quick-nav-card-content span svg {
  transition: transform var(--transition-fast);
}

.quick-nav-card:hover .quick-nav-card-content span svg {
  transform: translateX(4px);
}

/* Sectors Layout */
.sector-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sector-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.sector-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sector-card:hover .sector-card-img {
  transform: scale(1.05); /* Subtle scale up over 0.4s */
}

.sector-card-content {
  padding: 2rem;
  flex-grow: 1;
}

.sector-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* Careers Job List Board */
.job-board {
  margin-top: 3rem;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.job-item {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.job-item:last-child {
  border-bottom: none;
}

.job-item:hover {
  background-color: var(--slate-100);
}

.job-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.job-info span {
  font-size: 0.85rem;
  color: var(--slate-600);
  font-weight: 500;
  display: inline-flex;
  gap: 1rem;
}

/* Secure CAD Form layout */
.form-box {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 3rem auto 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  color: var(--slate-800);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
}

.form-error {
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  font-weight: 600;
  display: none;
}

.form-success-msg {
  background-color: #DEF7EC;
  border: 1px solid #BCF0DA;
  color: #03543F;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  font-weight: 600;
  display: none;
}

/* Footer Section */
.footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 80px 0 40px 0;
}

.footer h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 2px solid var(--red);
  padding-left: 0.5rem;
}

.footer p {
  color: var(--slate-300);
  font-size: 0.95rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-logo img {
  max-height: 45px;
  width: auto;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--navy-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--slate-300);
}

.footer-bottom a:hover {
  color: var(--red);
}

/* Split-Screen Hero Architecture */
.hero-split-container {
  display: flex;
  width: 100%;
  height: 480px;
  min-height: 420px;
  background-color: #1C1E21;
  overflow: hidden;
  border-radius: 0px !important;
}

@keyframes morphOne {
  0% {
    border-radius: 40% 60% 60% 40% / 40% 60% 60% 40%;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%;
    transform: translate(8%, -6%) scale(1.15) rotate(60deg);
  }
  66% {
    border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
    transform: translate(-6%, 8%) scale(0.9) rotate(120deg);
  }
  100% {
    border-radius: 40% 60% 60% 40% / 40% 60% 60% 40%;
    transform: translate(0, 0) scale(1) rotate(180deg);
  }
}

@keyframes morphTwo {
  0% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    border-radius: 35% 65% 45% 55% / 55% 45% 55% 35%;
    transform: translate(-10%, 10%) scale(0.85) rotate(-90deg);
  }
  100% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    transform: translate(0, 0) scale(1) rotate(-180deg);
  }
}

.hero-split-left {
  flex: 0 0 50%;
  width: 50%;
  background-color: #050b14;
  position: relative;
  overflow: hidden;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  box-sizing: border-box;
  z-index: 1;
  border-radius: 0px !important;
}

.hero-split-left::before,
.hero-split-left::after {
  content: "";
  position: absolute;
  filter: blur(120px);
  opacity: 0.85;
  z-index: 1;
}

.hero-split-left::before {
  width: 140%;
  height: 140%;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.95) 0%, rgba(0, 102, 255, 0.75) 50%, transparent 100%);
  top: -45%;
  left: -45%;
  animation: morphOne 22s ease-in-out infinite alternate;
}

.hero-split-left::after {
  width: 130%;
  height: 130%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(148, 163, 184, 0.6) 50%, transparent 100%);
  bottom: -35%;
  right: -35%;
  animation: morphTwo 18s ease-in-out infinite alternate;
}

.hero-split-left-content {
  max-width: 580px;
  position: relative;
  z-index: 5;
}

.hero-left-fade-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(5, 11, 20, 0.4) 40%, #050b14 100%);
  z-index: 3;
  pointer-events: none;
}

.split-headline {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  font-family: var(--font-headings);
  font-weight: 500;
}

.split-subheadline {
  font-size: 1.05rem;
  color: var(--slate-300);
  line-height: 1.6;
  font-weight: 300;
  font-family: var(--font-body);
}

.hero-split-right {
  flex: 0 0 50%;
  width: 50%;
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 0px !important;
}

.hero-split-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(to right, #050b14 0%, rgba(5, 11, 20, 0.8) 25%, rgba(5, 11, 20, 0.4) 60%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

.split-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  z-index: 1;
}

.split-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.split-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.split-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  z-index: 3;
}

.split-slide-caption-wrap {
  position: absolute;
  bottom: 40px;
  left: 5%;
  right: 5%;
  z-index: 4;
  display: flex;
  justify-content: center;
}

.split-slide-caption {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 2rem;
  border-radius: 24px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  text-align: center;
}

.split-slide-caption p {
  color: var(--white) !important;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  font-family: var(--font-body);
}

/* Responsive Split Screen */
@media (max-width: 1024px) {
  .hero-split-container {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }
  .hero-split-left {
    flex: 0 0 100%;
    width: 100%;
    padding: 3rem 2rem;
  }
  .hero-split-right {
    flex: 0 0 100%;
    width: 100%;
    height: 50vh;
    min-height: 400px;
  }
  
  .hero-split-right::before {
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, #050b14 0%, rgba(5, 11, 20, 0.8) 35%, transparent 100%);
  }
  
  .hero-left-fade-overlay {
    top: auto;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, rgba(5, 11, 20, 0.4) 40%, #050b14 100%);
  }
}

/* Division & Sectors Showcase Grid Styling */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.showcase-card {
  position: relative;
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}

.showcase-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden; /* overflow:hidden container */
  position: relative;
  background-color: var(--navy);
}

.showcase-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease; /* scale up subtly over 0.4s */
}

.showcase-card:hover .showcase-card-img {
  transform: scale(1.05); /* transform: scale(1.05) */
}

.showcase-card-content {
  padding: 1.5rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.showcase-card-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.showcase-card-title {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-family: var(--font-headings);
  font-weight: 700;
}

.showcase-card-desc {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* About Us Layout elements */
.about-hero-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid var(--slate-300);
}

.about-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-hero-wrap:hover .about-hero-img {
  transform: scale(1.05);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 22px;
    right: 2rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 144px;
    left: 0;
    width: 100%;
    height: calc(100vh - 144px);
    background-color: var(--white);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 1.5rem;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--slate-200);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .header.scrolled .nav-menu {
    top: 144px;
    height: calc(100vh - 144px);
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--slate-200);
    justify-content: space-between;
  }
  
  .nav-link::after {
    display: none; /* Hide hover underline animation on mobile navigation */
  }

  .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0 !important;
    margin: 0 !important;
    display: none;
    opacity: 1;
    visibility: visible;
    transition: none;
    list-style: none !important;
    list-style-type: none !important;
  }
  
  .dropdown-menu.active {
    display: block;
  }
  
  .dropdown-link {
    padding: 0.75rem 0;
    font-size: 1rem;
  }
  
  .grid-cols-3, .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .quick-nav-grid {
    grid-template-columns: 1fr;
  }
  
  .form-box {
    padding: 2rem 1.5rem;
  }
  
  .slide-text-box {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .logo-subtext {
    display: flex !important;
    align-items: center;
  }
  .corp-name {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
  .corp-estd {
    font-size: 0.55rem;
  }
  .grid-cols-2, .grid-cols-3, .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero-slider {
    height: 75vh;
  }
  
  .slide-text-box {
    padding: 1.5rem;
  }
  
  .division-section {
    padding: 2rem 1.5rem;
  }
  
  .job-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Breadcrumbs Layout */
.breadcrumbs-bar {
  background-color: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.75rem 0;
  font-size: 0.85rem;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--slate-600);
  font-weight: 500;
}
.breadcrumb-item a {
  color: var(--navy);
  transition: color var(--transition-fast);
  font-weight: 600;
}
.breadcrumb-item a:hover {
  color: var(--red);
}
.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  margin-right: 0.5rem;
  color: var(--slate-300);
  font-weight: 700;
}
.breadcrumb-item.active {
  color: var(--slate-600);
  pointer-events: none;
}

/* Metrology / CMM Page Custom styles */
.metrology-container {
  background-color: var(--white);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.clinical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-left: 1px solid var(--slate-200);
  border-top: 1px solid var(--slate-200);
}
.clinical-grid-cell {
  padding: 2.5rem;
  border-right: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  background-color: var(--white);
  transition: background-color var(--transition-fast);
}
.clinical-grid-cell:hover {
  background-color: var(--slate-100);
}
.technical-callout {
  border: 1px solid var(--slate-200);
  background-color: var(--slate-100);
  padding: 2rem;
  font-family: var(--font-body);
  border-left: 4px solid var(--navy);
  margin-top: 2rem;
}
.technical-metric {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

/* Legal Modals Styling */
.legal-modal {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28, 30, 33, 0.85); /* Deep Charcoal tint */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px); /* Safari engine compatibility */
  z-index: 99999 !important;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Aligns container to top so it can scroll downwards naturally */
  overflow-y: scroll !important; /* Forces Safari layout engine to initialize scrolling at the root layer */
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.legal-modal.active {
  opacity: 1;
  visibility: visible;
}
.legal-modal-content {
  background: #FFFFFF;
  color: #1C1E21;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 24px; /* Maintain approved rounded corner tokens */
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-top: 4px solid var(--red); /* Maintain brand red accent */
  position: relative;
  /* Remove inner max-height and inner scrolling rules completely—let the parent handle scroll */
  height: auto !important;
  overflow: visible !important;
}
.legal-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--slate-600);
  transition: color var(--transition-fast);
  line-height: 1;
}
.legal-modal-close:hover {
  color: var(--red);
}
.legal-modal h3 {
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-size: 1.4rem;
  color: var(--navy);
}
.legal-modal p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--slate-800);
  text-align: justify;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   STYLING UPGRADES: CURVED STYLE SYSTEM & INLINE CARD CORRECTION
   ========================================================================== */

/* Card & Container Style system: force 24px curvature globally */
.split-slide-caption,
.quick-nav-card,
.sector-card,
.showcase-card,
.about-hero-wrap,
.gallery-card,
.division-section,
.form-box,
.procedure-box,
.job-board,
.technical-callout,
.legal-modal-content,
.about-hero-img,
.quick-nav-card-img,
.sector-card-img,
.showcase-card-img,
.gallery-card img,
div[style*="border: 1px"],
div[style*="border-left:"],
div[style*="border-right:"],
div[style*="border-top:"],
div[style*="border-bottom:"] {
  border-radius: 24px !important;
  overflow: hidden !important;
}

/* Specific overrides for containers with internal layouts to ensure sharp corner rendering */
.quick-nav-card-bg,
.quick-nav-card-img,
.sector-card-img-wrap,
.showcase-card-img-wrap {
  border-top-left-radius: 24px !important;
  border-top-right-radius: 24px !important;
  overflow: hidden !important;
}

/* Global Breadcrumb Spacing override to match taller sticky header */
.breadcrumbs-bar {
  margin-top: 0 !important;
}

/* Validation and link states */
.form-control.invalid-field {
  border: 2px solid var(--red) !important;
}

.footer p a {
  color: var(--slate-300);
  transition: color var(--transition-fast);
}

.footer p a:hover {
  color: var(--red);
}

/* Floating Page Navigation Scroll Buttons (Red with White Arrows) */
.scroll-btn-down,
.scroll-btn-up {
  position: fixed;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--color-accent, var(--red, #e50505));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(229, 5, 5, 0.3);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50% !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.scroll-btn-down {
  bottom: 2rem;
}

.scroll-btn-up {
  bottom: 6rem;
}

/* Visibility states */
.scroll-btn-down.visible,
.scroll-btn-up.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-btn-down:hover,
.scroll-btn-up:hover {
  transform: scale(1.08) translateY(-2px);
  background-color: var(--red-hover, #c90404);
  box-shadow: 0 6px 20px rgba(229, 5, 5, 0.5);
}

.scroll-btn-down:active,
.scroll-btn-up:active {
  transform: scale(0.95);
}

/* SVG Arrow Styling */
.scroll-btn-down svg,
.scroll-btn-up svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: #ffffff;
  stroke-width: 3;
  fill: none;
}

/* Responsive Mobile Layout (max-width: 480px) */
@media (max-width: 480px) {
  .scroll-btn-down,
  .scroll-btn-up {
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }
  
  .scroll-btn-down {
    bottom: 1.5rem;
  }
  
  .scroll-btn-up {
    bottom: 4.75rem;
  }
  
  .scroll-btn-down svg,
  .scroll-btn-up svg {
    width: 1rem;
    height: 1rem;
  }
}

/* ==========================================================================
   Premium Interactive Expanding Divisions Deck
   ========================================================================== */
.divisions-deck-section {
  background-color: #050b14 !important; /* Deep space black base */
  padding: 6.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.divisions-deck-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(13, 148, 136, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.divisions-deck {
  display: flex;
  width: 100%;
  height: 500px;
  gap: 1.25rem;
  margin-top: 2rem;
}

.division-card-new {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 0px !important; /* Enforce sharp modern borders requested by user */
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  background-color: #0b1329;
  transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s;
}

.division-card-new::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5, 11, 20, 0.1) 0%, rgba(5, 11, 20, 0.88) 100%);
  z-index: 2;
  transition: background 0.4s ease;
}

.division-card-new-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(40%);
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease, filter 0.4s;
  z-index: 1;
}

.division-card-new-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--red); /* Laser accent border */
  z-index: 4;
  opacity: 0.3;
  transition: opacity 0.3s, background 0.3s, width 0.3s;
}

/* Hover/Expanded states */
.division-card-new:hover {
  flex: 3;
  border-color: rgba(229, 5, 5, 0.4);
}

.division-card-new:hover::after {
  background: linear-gradient(to bottom, rgba(5, 11, 20, 0.15) 0%, rgba(5, 11, 20, 0.95) 100%);
}

.division-card-new:hover .division-card-new-img {
  transform: scale(1.04);
  opacity: 0.7;
  filter: grayscale(0%);
}

.division-card-new:hover .division-card-new-glow {
  opacity: 1;
  width: 6px;
  background: var(--red);
}

/* Color codes mapping for glow */
.division-card-new:nth-child(1) .division-card-new-glow { background: var(--red); }
.division-card-new:nth-child(1):hover { border-color: rgba(229, 5, 5, 0.4); }

.division-card-new:nth-child(2) .division-card-new-glow { background: #0d9488; } /* Metrology Teal */
.division-card-new:nth-child(2):hover { border-color: rgba(13, 148, 136, 0.4); }

.division-card-new:nth-child(3) .division-card-new-glow { background: #0284c7; } /* Deep Cobalt */
.division-card-new:nth-child(3):hover { border-color: rgba(2, 132, 199, 0.4); }

.division-card-new:nth-child(4) .division-card-new-glow { background: #cbd5e1; } /* Titanium Silver */
.division-card-new:nth-child(4):hover { border-color: rgba(203, 213, 225, 0.4); }

.division-card-new:nth-child(5) .division-card-new-glow { background: #94a3b8; } /* Polished Steel */
.division-card-new:nth-child(5):hover { border-color: rgba(148, 163, 184, 0.4); }

/* Card Content Structure */
.division-card-new-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Vertical text layout when shrunken */
.division-vertical-title {
  position: absolute;
  top: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-headings);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.15em;
  font-weight: 700;
  pointer-events: none;
  transition: opacity 0.3s ease, color 0.3s;
  text-align: center;
}

.division-vertical-title span {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-family: var(--font-headings);
  color: var(--red);
  font-weight: 800;
  writing-mode: horizontal-tb;
  text-align: center;
}
.division-card-new:nth-child(1) .division-vertical-title span { color: var(--red); }
.division-card-new:nth-child(2) .division-vertical-title span { color: #0d9488; }
.division-card-new:nth-child(3) .division-vertical-title span { color: #0284c7; }
.division-card-new:nth-child(4) .division-vertical-title span { color: #cbd5e1; }
.division-card-new:nth-child(5) .division-vertical-title span { color: #94a3b8; }

.division-card-new:hover .division-vertical-title {
  opacity: 0;
}

/* Horizontal content fade-in when expanded */
.division-expanded-content {
  margin-top: auto;
  padding: 2.5rem 2rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.division-card-new:hover .division-expanded-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.division-expanded-no {
  font-size: 0.85rem;
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.15em;
  margin-bottom: 0.35rem;
  display: block;
}
.division-card-new:nth-child(1) .division-expanded-no { color: var(--red); }
.division-card-new:nth-child(2) .division-expanded-no { color: #0d9488; }
.division-card-new:nth-child(3) .division-expanded-no { color: #0284c7; }
.division-card-new:nth-child(4) .division-expanded-no { color: #cbd5e1; }
.division-card-new:nth-child(5) .division-expanded-no { color: #94a3b8; }

.division-expanded-title {
  font-size: 1.45rem;
  font-family: var(--font-headings);
  color: var(--white);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.division-expanded-desc {
  font-size: 0.85rem;
  color: var(--slate-300);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

.division-expanded-cta {
  font-size: 0.8rem;
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.division-card-new:nth-child(1) .division-expanded-cta { color: var(--red); border-color: rgba(229,5,5,0.2); }
.division-card-new:nth-child(2) .division-expanded-cta { color: #0d9488; border-color: rgba(13,148,136,0.2); }
.division-card-new:nth-child(3) .division-expanded-cta { color: #0284c7; border-color: rgba(2,132,199,0.2); }
.division-card-new:nth-child(4) .division-expanded-cta { color: #cbd5e1; border-color: rgba(203,213,225,0.2); }
.division-card-new:nth-child(5) .division-expanded-cta { color: #94a3b8; border-color: rgba(148,163,184,0.2); }

.division-expanded-cta:hover {
  background: var(--red);
  color: #fff !important;
  border-color: var(--red);
}
.division-card-new:nth-child(1) .division-expanded-cta:hover { background: var(--red); border-color: var(--red); }
.division-card-new:nth-child(2) .division-expanded-cta:hover { background: #0d9488; border-color: #0d9488; }
.division-card-new:nth-child(3) .division-expanded-cta:hover { background: #0284c7; border-color: #0284c7; }
.division-card-new:nth-child(4) .division-expanded-cta:hover { background: #cbd5e1; border-color: #cbd5e1; color: #050b14 !important; }
.division-card-new:nth-child(5) .division-expanded-cta:hover { background: #94a3b8; border-color: #94a3b8; color: #050b14 !important; }

.division-expanded-cta svg {
  transition: transform 0.2s;
}
.division-expanded-cta:hover svg {
  transform: translateX(4px);
}

/* Responsive Mobile Layout (max-width: 820px) */
@media (max-width: 820px) {
  .divisions-deck {
    flex-direction: column;
    height: auto;
    gap: 0.75rem;
  }
  
  .division-card-new {
    flex: none;
    height: 90px;
    border-radius: 0px !important;
    transition: height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  .division-card-new:hover {
    height: 270px;
  }
  
  .division-vertical-title {
    writing-mode: horizontal-tb;
    transform: none;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    transition: opacity 0.2s ease;
  }
  
  .division-vertical-title span {
    display: inline-block;
    margin-bottom: 0;
    margin-right: 0.75rem;
    writing-mode: horizontal-tb;
  }
  
  .division-card-new:hover .division-vertical-title {
    opacity: 0;
  }
  
  .division-expanded-content {
    padding: 1.5rem;
  }
}




/* ==========================================================================
   Nostalgic About Us Layout (Homepage Style Sync - Compact Grid - Light Theme)
   ========================================================================== */
.about-editorial-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Compact Grid Timeline Section */
.decade-timeline-section {
  padding: 2.25rem 0;
}

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

.decade-grid-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.decade-grid-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #cbd5e1;
}

.decade-grid-card.accent-gold .decade-grid-card-accent { background: #d97706; }
.decade-grid-card.accent-rose .decade-grid-card-accent { background: #e11d48; }
.decade-grid-card.accent-teal .decade-grid-card-accent { background: #0d9488; }
.decade-grid-card.accent-blue .decade-grid-card-accent { background: #0284c7; }
.decade-grid-card.accent-green .decade-grid-card-accent { background: #16a34a; }
.decade-grid-card.accent-slate .decade-grid-card-accent { background: #64748b; }

.decade-grid-img-wrap {
  width: 100%;
  height: 190px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--slate-100);
}

.decade-grid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.decade-grid-color-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: color;
  opacity: 0.75;
  z-index: 2;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.decade-grid-card:hover .decade-grid-color-tint {
  opacity: 0.15;
}

.decade-grid-card:hover .decade-grid-img-wrap img {
  transform: scale(1.04);
}

.decade-grid-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.decade-grid-badge {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 800;
  align-self: flex-start;
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.decade-grid-card.accent-gold .decade-grid-badge { background: rgba(217, 119, 6, 0.1); color: #d97706; border: 1px solid rgba(217, 119, 6, 0.2); }
.decade-grid-card.accent-rose .decade-grid-badge { background: rgba(225, 29, 72, 0.1); color: #e11d48; border: 1px solid rgba(225, 29, 72, 0.2); }
.decade-grid-card.accent-teal .decade-grid-badge { background: rgba(13, 148, 136, 0.1); color: #0d9488; border: 1px solid rgba(13, 148, 136, 0.2); }
.decade-grid-card.accent-blue .decade-grid-badge { background: rgba(2, 132, 199, 0.1); color: #0284c7; border: 1px solid rgba(2, 132, 199, 0.2); }
.decade-grid-card.accent-green .decade-grid-badge { background: rgba(22, 163, 74, 0.1); color: #16a34a; border: 1px solid rgba(22, 163, 74, 0.2); }
.decade-grid-card.accent-slate .decade-grid-badge { background: rgba(100, 116, 139, 0.1); color: #64748b; border: 1px solid rgba(100, 116, 139, 0.2); }

.decade-grid-title {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.decade-grid-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--slate-600);
  margin: 0;
  text-align: justify;
}

.tint-gold { background-color: #d97706; }
.tint-rose { background-color: #e11d48; }
.tint-teal { background-color: #0d9488; }
.tint-blue { background-color: #0284c7; }
.tint-green { background-color: #16a34a; }
.tint-slate { background-color: #64748b; }

/* Dashboard Metrics Section (Crisp Images Layout) */
.dashboard-section-nostalgic {
  padding: 2.25rem 0;
  border-top: 1px solid var(--slate-200);
}

.dashboard-nostalgic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.dashboard-nostalgic-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.dashboard-nostalgic-card:hover {
  transform: translateY(-4px);
  border-color: var(--slate-300);
}

.dashboard-card-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 5;
}

.dashboard-nostalgic-img-wrap {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-bottom: 1px solid var(--slate-100);
}

.dashboard-nostalgic-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(105%) brightness(95%);
  transition: transform 0.5s ease;
}

.dashboard-nostalgic-card:hover .dashboard-nostalgic-img-wrap img {
  transform: scale(1.03);
}

.dashboard-nostalgic-content {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dashboard-nostalgic-stat {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: block;
}

.dashboard-nostalgic-title {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.dashboard-nostalgic-desc {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0;
  text-align: justify;
}

/* Vision Board */
.vision-nostalgic-box {
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 3rem 4rem;
  margin-top: 4rem;
  text-align: center;
  position: relative;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.vision-nostalgic-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--red) 0%, #0d9488 50%, #0284c7 100%);
}

.vision-nostalgic-title {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.vision-nostalgic-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate-700);
  max-width: 800px;
  margin: 0 auto;
  font-weight: 300;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .decade-grid {
    gap: 1.5rem;
  }
  .dashboard-nostalgic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 820px) {
  .decade-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .decade-grid-img-wrap {
    height: 170px;
  }
  .decade-grid-content {
    padding: 1.5rem;
  }
  .dashboard-nostalgic-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .vision-nostalgic-box {
    padding: 2rem;
    margin-top: 3rem;
  }
  .about-nostalgic-title {
    font-size: 2.2rem;
  }
}

/* ==========================================================================
   Global Uniform Dark Theme & Animated Background Overrides
   ========================================================================== */
.page-dark-theme {
  background-color: #050b14 !important;
  color: #f1f5f9 !important;
  position: relative;
}

/* Global Animated Background Container */
.site-animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background-color: #050b14;
  pointer-events: none;
}

.site-animated-bg::before,
.site-animated-bg::after {
  content: "";
  position: absolute;
  filter: blur(140px);
  opacity: 0.38; /* Calibrated opacity to ensure excellent text readability across all pages */
  z-index: -1;
}

.site-animated-bg::before {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.5) 0%, rgba(0, 102, 255, 0.3) 50%, transparent 100%);
  top: -15%;
  left: -15%;
  animation: morphOne 25s ease-in-out infinite alternate;
}

.site-animated-bg::after {
  width: 90%;
  height: 90%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(148, 163, 184, 0.25) 50%, transparent 100%);
  bottom: -15%;
  right: -15%;
  animation: morphTwo 20s ease-in-out infinite alternate;
}

/* Header & Breadcrumbs Overrides */
.page-dark-theme .header {
  background: rgba(5, 11, 20, 0.8) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-dark-theme .breadcrumbs-bar {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-dark-theme .breadcrumb-item a {
  color: #94a3b8 !important;
}

.page-dark-theme .breadcrumb-item.active {
  color: #ffffff !important;
  font-weight: 600;
}

/* Global Typography Readability Overrides */
.page-dark-theme h1,
.page-dark-theme h2,
.page-dark-theme h3,
.page-dark-theme h4,
.page-dark-theme h5,
.page-dark-theme h6 {
  color: #ffffff !important;
}

.page-dark-theme p,
.page-dark-theme li,
.page-dark-theme span,
.page-dark-theme label,
.page-dark-theme td,
.page-dark-theme th {
  color: #cbd5e1 !important;
}

/* Dark Form Controls */
.page-dark-theme input,
.page-dark-theme textarea,
.page-dark-theme select {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.page-dark-theme input:focus,
.page-dark-theme textarea:focus,
.page-dark-theme select:focus {
  border-color: var(--red) !important;
  outline: none;
}

/* Dark Card Elements (e.g. Services, Contact, Projects) */
.page-dark-theme .card,
.page-dark-theme .glass-card,
.page-dark-theme .service-card,
.page-dark-theme .project-card,
.page-dark-theme .contact-card {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.page-dark-theme .footer {
  background: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-dark-theme .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Reset typography inside white/slate sections back to dark */
.page-dark-theme .bg-white h1,
.page-dark-theme .bg-white h2,
.page-dark-theme .bg-white h3,
.page-dark-theme .bg-white h4,
.page-dark-theme .bg-white h5,
.page-dark-theme .bg-white h6,
.page-dark-theme .bg-slate h1,
.page-dark-theme .bg-slate h2,
.page-dark-theme .bg-slate h3,
.page-dark-theme .bg-slate h4,
.page-dark-theme .bg-slate h5,
.page-dark-theme .bg-slate h6,
.page-dark-theme .section:not(.decade-timeline-section):not(.dashboard-section-nostalgic) h1,
.page-dark-theme .section:not(.decade-timeline-section):not(.dashboard-section-nostalgic) h2,
.page-dark-theme .section:not(.decade-timeline-section):not(.dashboard-section-nostalgic) h3,
.page-dark-theme .section:not(.decade-timeline-section):not(.dashboard-section-nostalgic) h4 {
  color: var(--navy) !important;
}

.page-dark-theme .bg-white p,
.page-dark-theme .bg-white li,
.page-dark-theme .bg-white span,
.page-dark-theme .bg-white label,
.page-dark-theme .bg-slate p,
.page-dark-theme .bg-slate li,
.page-dark-theme .bg-slate span,
.page-dark-theme .bg-slate label,
.page-dark-theme .section:not(.decade-timeline-section):not(.dashboard-section-nostalgic) p,
.page-dark-theme .section:not(.decade-timeline-section):not(.dashboard-section-nostalgic) li,
.page-dark-theme .section:not(.decade-timeline-section):not(.dashboard-section-nostalgic) span {
  color: var(--slate-700) !important;
}

.page-dark-theme .bg-white strong,
.page-dark-theme .bg-slate strong {
  color: var(--navy) !important;
}

/* Ensure red accent subheadlines remain red */
.page-dark-theme .bg-white .text-red,
.page-dark-theme .bg-slate .text-red,
.page-dark-theme .bg-white .accent-red,
.page-dark-theme .bg-slate .accent-red {
  color: var(--red) !important;
}

/* Image Copy, Right-Click & Drag Protection */
img, .img-protected, canvas, picture, svg, .hero-slideshow img, .gallery-item img, .card-img-wrap img, .dashboard-nostalgic-img-wrap img {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important; /* Disables tap-and-hold save image on iOS / Safari */
  pointer-events: none !important; /* Disables pointer interaction on raw images so right clicks fall through */
}

/* Re-enable pointer events for image links or interactive elements */
a img, button img {
  pointer-events: auto !important;
}

/* Team 4-Grid Responsive Layout */
.team-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .team-4-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .team-4-grid {
    grid-template-columns: 1fr !important;
  }
  .founder-card-inner {
    grid-template-columns: 1fr !important;
  }
}
