:root {
  --gate-red: #b33a3a;
  --gate-deep-red: #8B1A1A;
  --gate-red: #996B55;
  --gate-deep-red: #3a2f25;
  --gate-black: #0a0a0a;
  --gate-charcoal: #141414;
  --gate-iron: #1a1a1a;
  --gate-white: #ffffff;
  --gate-light-gray: #e0e0e0;
  --gate-muted-gray: #cccccc;
  --primary: #8B1a1a;
  --beige: #e5ded4;
  --dark-brown: rgb(58,47,37);
  --brown: #996B55;
  --steel-white: #f9fbfb;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, .brand-logo-text {
  font-family: 'Playfair Display', serif;
}

/* Fancy Serif Font Typography for Text Logo */

.navbar-brand {
  font-size: clamp(1.1rem, 0.6rem + 1.333vw, 1.8rem);
}

.brand-logo-text {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gate-white);
}

.text-red-brand {
  color: var(--gate-red) !important;
}

/* Asymmetric Header Navigation */

.custom-navbar {
  background-color: #996b55;
  border-bottom: 3px solid var(--dark-brown);
  z-index: 2000;
}

/* Custom Navigation Hover Animation */

.custom-navbar .nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.custom-navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--dark-brown);
  transition: width 0.3s ease;
}

.custom-navbar .nav-link:hover::after {
  width: 100%;
}

.custom-navbar .nav-link:hover {
  color: var(--dark-brown) !important;
}

/* --- THE HERO LAYER: Kinetic Asymmetric Split Look --- */

.hero-split-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #e5ded4 40%, #e5ded4 100%);
  overflow: hidden;
}

@media (max-width: 991px) {
  .hero-split-section {
    background-image: linear-gradient(90deg,rgba(229, 222, 212, 0.90) 1%, rgba(229, 222, 212, 0.90) 100%), url('../../assets/img/gate3.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

@media (max-width: 991px) {
  .hero-split-section {
    min-height: 75vh;
  }
}

/* LEFT SIDE MOVING GATE ELEMENT (Lowered z-index to 2 so it slides behind the lock completely) */

.gate-left-wing {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: repeating-linear-gradient( 90deg, transparent, transparent 40px, rgba(153, 107, 85, 0.15) 40px, rgba(153, 107, 85, 0.15) 45px );
  border-right: 4px solid var(--gate-red);
  z-index: 25;
  animation: openLeftGate 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  animation-delay: 0s;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* RIGHT SIDE FIXED GATE ELEMENT (z-index: 1 - background layer) */

.gate-bars-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: repeating-linear-gradient( 90deg, transparent, transparent 40px, rgba(153, 107, 85, 0.15) 40px, rgba(153, 107, 85, 0.15) 45px );
  border-left: 4px solid var(--gate-red);
  z-index: 25;
}

/* Mechanical Lock Box Layout (z-index: 20 - Lifted on top of ALL moving gate panels, lines, and borders) */

.hero-gate-lock-housing {
  position: absolute;
  top: 50%;
  left: -4px;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 90px;
  background-color: var(--dark-brown);
  border: 4px solid var(--gate-red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: unset;
  z-index: 20;
  animation: unlockMechanical 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0s;
}

/* Keyhole Icon Base Layer */

.keyhole-icon {
  width: 20px;
  height: 35px;
  fill: var(--gate-white);
  transition: fill 0.3s ease;
}

/* Kinetic Gate Structural Opening Sequences */

@keyframes unlockMechanical {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) rotate(-12deg) scale(1.1);
    border-color: var(--gate-white);
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
}

@keyframes openLeftGate {
  0% {
    left: 0;
    opacity: 1;
  }
  100% {
    left: -60%;
    opacity: 0.4;
  }
}

/* Hero Static Image Frame (Moved further right to uncover the lock) */

.hero-image-frame {
  position: relative;
  z-index: 5;
  border: 8px solid var(--gate-white);
  box-shadow: 15px 15px 0px var(--gate-red);
}

/* High Visibility Paragraph text against dark backgrounds */

.text-high-visibility {
  color: var(--gate-light-gray) !important;
  font-size: 1.1rem;
  line-height: 1.75;
}

.text-meta-visibility {
  color: var(--gate-muted-gray) !important;
}

/* --- SILHOUETTE SECTION --- */

.silhouette-section {
  position: relative;
  padding: 120px 0;
  background-color: #1c1813;
  background-image: url("data:image/svg+xml,%3Csvg fill='currentColor' xmlns='http://www.w3.org/2000/svg' width='100%20' height='300' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,100 L0,20 L5,20 L5,90 L15,90 L15,10 L20,10 L20,90 L30,90 L30,5 L35,5 L35,90 L45,90 L45,10 L50,10 L50,90 L60,90 L60,5 L65,5 L65,90 L75,90 L75,10 L80,10 L80,90 L90,90 L90,20 L95,20 L95,100 Z' fill='%23050505' fill-opacity='0.6'/%3E%3C/svg%3E");
  background-position: -1px 0;
  background-repeat: no-repeat;
  background-size: 106% 100%;
}

/* --- STRATA / ESTATE DESIGN FRAMEWORK --- */

.estate-panel-card {
  background: var(--dark-brown);
  border-top: 4px solid var(--gate-red);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.estate-panel-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--gate-white);
}

/* --- SKEWED STRUCTURAL BLOCK WITH RED TOP BAR --- */

.skew-breakout-container {
  background: var(--gate-white);
  color: var(--gate-black);
  transform: skewY(-2deg);
  border-top: 8px solid var(--gate-red);
}

.skew-unbreak {
  transform: skewY(2deg);
}

/* --- RECENT FIELD DEPLOYMENTS GALLERY SECTION --- */

.gallery-grid-card {
  position: relative;
  overflow: hidden;
  border: 2px solid #3a2f25;
  height: 380px;
}

.gallery-grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) contrast(110%);
  transition: all 0.5s ease;
}

.gallery-grid-card:hover img {
  filter: grayscale(0%) contrast(100%);
  transform: scale(1.05);
}

.gallery-meta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(0deg, rgba(10,10,10,1) 0%, rgba(10,10,10,0.8) 70%, transparent 100%);
  z-index: 3;
}

/* --- TRADITIONAL SERIF BUTTON STYLING --- */

.btn-gate-bold {
  font-family: 'Cinzel', serif;
  /*background-color: var(--gate-red);*/
  color: var(--gate-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  /*border: 2px solid var(--gate-red);*/
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gate-bold:hover {
  background-color: var(--primary);
  color: var(--gate-white);
  border-color: var(--gate-white);
  transform: scale(1.03);
}

.btn-gate-outline {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gate-outline:hover {
  background-color: var(--beige);
  color: var(--gate-black);
  transform: scale(1.03);
}

.gate-bar-divider {
  height: 6px;
  background: linear-gradient(90deg, var(--gate-red) 0%, var(--gate-black) 100%);
  border: none;
  opacity: 1;
}

@media (max-width: 991.98px) {
  .gate-bars-overlay, .gate-left-wing {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .hero-image-frame {
    margin-left: 0;
  }
}

section {
  scroll-margin-top: 74px;
}

.ticket {
  background-color: var(--beige);
  border-left: 3px solid var(--primary);
  padding: 1.5rem;
  height: 100%;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  background-color: #333;
  color: #fff;
  padding: 5px 17px 5px 5px;
  border-radius: 50px;
  font-size: .85rem;
  border: 3px solid #333;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  gap: 12px;
  text-decoration: none;
  transition: transform .2s,box-shadow .2s;
}

.footer-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(179,179,179,.44);
  color: #333;
  background: linear-gradient(-145deg,#d6c108,#e3e3e3),#fff;
  border-color: #333;
  text-decoration: none;
}

.footer-pill img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background-color: #fff;
}

.developer-footer {
  margin-bottom: 6rem;
  zoom: 0.75;
}

/* --- NEW MONOLITHIC INTRO HEADER --- */

.hero-banner-bg {
  position: relative;
  min-height: 45vh;
  background: linear-gradient(rgba(58, 47, 37, 0.85), rgba(58, 47, 37, 0.95)), var(--background-img) no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  border-bottom: 6px solid var(--primary);
}

.structural-accent-strip {
  width: 120px;
  height: 4px;
  background-color: var(--primary);
  margin-top: 15px;
}

/* --- SECTION 1: PERSONNEL MATRIX CARDS --- */

.team-card-wrapper {
  background-color: var(--gate-white);
  box-shadow: 0 10px 30px rgba(58, 47, 37, 0.05);
  transition: transform 0.3s ease;
}

.team-card-wrapper:hover {
  transform: translateY(-5px);
}

.team-img-crop {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: sepia(20%) contrast(105%);
}

/* --- SECTION 2: TIMELINE DOT ARCHITECTURE --- */

.timeline-dot-red {
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  background-color: var(--gate-red);
  border: 2px solid var(--gate-white);
}

.timeline-dot-white {
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  background-color: var(--gate-white);
  border: 2px solid var(--gate-red);
}

/* --- SECTION 3: GROUP PIC FRAMING --- */

.ethics-hero-frame {
  border: 8px solid var(--beige);
  box-shadow: 12px 12px 0px var(--dark-brown);
}

/* --- NEW HERO SYSTEMS SECTION BANNER --- */

.services-hero-bg {
  position: relative;
  min-height: 45vh;
  background: linear-gradient(rgba(58, 47, 37, 0.85), rgba(58, 47, 37, 0.95)), url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?auto=format&fit=crop&w=1600&q=80') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  border-bottom: 6px solid var(--primary);
}

.structural-accent-strip {
  width: 120px;
  height: 4px;
  background-color: var(--primary);
  margin-top: 15px;
}

/* --- SERVICE CAPABILITY MODULE CARDS --- */

.services-grid-card {
  background-color: var(--gate-white);
  box-shadow: 0 10px 30px rgba(58, 47, 37, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(58, 47, 37, 0.1);
}

.services-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(139, 26, 26, 0.1);
}

.service-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: sepia(10%) contrast(102%);
}

.service-meta-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.navbar-nav .nav-link {
  color: white;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
  color: var(--dark-brown);
}

