/* Reset and base styles */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body { 
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    font-size: 12px;
    /* max-width: 1600px; */
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
p {
  font-size: 1.4em;
}

h1 { 
    font-family: "Anton", "Impact", "Arial Black", sans-serif; 
    font-size: 5.0625em; 
}

h1 small { 
    font-family: "Aldrich", "Trebuchet MS", "Arial", sans-serif;
    font-size: 0.69em; /* 3.5 ÷ 5.0625 = 0.69 */
    color: #878b8e;
}

h2 { 
    font-family: "Anton", "Impact", "Arial Black", sans-serif; 
    font-size: 5.625em;
}

h3 { 
    font-family: "Aldrich", "Trebuchet MS", "Arial", sans-serif; 
    font-size: 3.125em;
}
h4 { 
    font-family: "Aldrich", "Trebuchet MS", "Arial", sans-serif;  
}

li {
  font-size: 1.4em;
}

nav, .ui { 
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    color: #002A8B;
}

/* Optional: avoid fake bold/italic jank */
html { 
    font-synthesis-weight: none; 
    font-synthesis-style: none; 
}

/* Font loading optimization */
@font-face {
    font-family: 'Anton';
    font-display: swap;
}

@font-face {
    font-family: 'Aldrich';
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    font-display: swap;
}

/* Color Classes */
.hero-bg {
    background: #001453;
}
.shield-icon {
    width: 40px;
    height: 40px;
    background: #1e3a8a;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.shield-icon.bg-white {
    background: white;
}
.text-blue-800 { color: #001453; }/* #001453 = rgb(0, 20, 83) */
.text-blue-200 { color: #dbeafe; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #878B8E; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-300 { background-color: #DFE1E3; }
.bg-gray-400 { background-color: #878B8E; }
.bg-gray-800 { background-color: #535c62; }
.bg-gray-900 { background-color: #111827; }
.bg-blue-700 { background-color: #002A8B; }
.bg-blue-800 { background-color: #1e40af; }
.bg-blue-900 { background-color: #1e3a8a; }
.bg-red { background-color: #A50404; color: white; }
.font-black { font-weight: 900; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-relaxed { line-height: 1.625; }

/* Navigation Styles */
.navbar {
    background-color: #DFE1E3 !important;
    padding: 0;
    min-height: 55px;
}

.navbar-nav .nav-link {
    color: #4b5563 !important;
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
}

.navbar-nav .nav-link:hover {
    color: #001453 !important;
}

.navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    top: -25px;
}

/* Dropdown styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #DFE1E3;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: #4b5563;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
    font-size: .8em;
}

.dropdown-item:hover {
    background-color: #001453;
    color: white;
}

.dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: 0.125em;
}

.navbar>.container {
  display: unset;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    float: right;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Logo positioning */
.idefend-logo-header {
    height: 200px;
    width: auto;
    position: relative;
    top: 20px;
    z-index: 5;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .navbar-brand {
        margin-top: 1.25em;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .dropdown-menu {
        background-color: transparent;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
    
    .dropdown-item {
        padding: 8px 0;
        padding-left: 20px;
    }
    
    .dropdown-item:hover {
        background-color: transparent;
        color: #001453;
    }
    
    .idefend-logo-header {
        height: 100px;
        top: 2px;
    }
}

/* Animation Classes - Initial hidden states */
.animate-fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-pop {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Active animation states */
.animate-fade-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale-in.animate-in {
    opacity: 1;
    transform: scale(1);
}

.animate-pop.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Hero animations - immediate load */
.hero-bg h1 {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s ease-out 0.5s forwards;
}

.hero-bg h1 small {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease-out 1s forwards;
}

/* Keyframe definitions for immediate animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover effects */
.big-cta-button:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Existing styles */
.container-larger {
  max-width: 1600px;
}
.blue-box-reverse {
  background-color: #001453;
  color: white;
  width: auto;
  margin: 0 auto;
}

.hero-bg {
  border-bottom: 13px solid #001453;
}

.headline-top-box {
  padding: 0.5em 1em;
}

.security-solutions {

}
.security-solutions-intro {

}
.security-solutions-tag {
  font-size: 3.125em;
  color: #878B8E;
  margin-bottom: 0;
  line-height: 1;
  padding-top: .3em;
}
.security-solutions hr {
  color: #878B8E;
  border-top-width: 3px;
}
.big-cta-button {
  background-color: #002A8B;
  position: relative;
  top: -65px;
}

.hero-deployment-bg-home {
  background: url('/assets/img/deployment.webp') center center / cover no-repeat; 
  margin-left: calc(-1 * (100vw - 100%)/2); 
  margin-right: calc(-1 * (100vw - 100%)/2); 
  width: 100vw; 
  padding-bottom: 48px;
}
.training-image {
  background: #001453 url('/assets/img/training.webp') center bottom / cover no-repeat;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  min-height: 70vh;
  padding-bottom: 48px;
  position: relative;
}

a.big-cta-button {
  color: white;
  text-decoration: none;;
}
a:hover.big-cta-button {
  text-decoration: underline;
}
a.big-cta-button .big-cta-button-title, a.big-cta-box .big-cta-button-title {
  font-family: "Anton", "Impact", "Arial Black", sans-serif; 
  font-size: 35px;
}
a.big-cta-button .big-cta-button-subtitle, a.big-cta-box .big-cta-button-subtitle {
  font-family: "Aldrich", "Trebuchet MS", "Arial", sans-serif;
  font-size: 20px;
}
@media (max-width: 991.98px) {
  .big-cta-button {
    line-height: 1;
    border-radius: 15px!important;
    top: -65px;
  }
  .big-cta-button-subtitle {
  }
  .special-operations-cta .container-fluid {
    padding-left: 0;
    padding-right: 0;
    background-color: #002A8B;
  }
  .big-cta-box {
    background-color: #002A8B;
  }
  .
}


@media (max-width: 600px) {
  .row>* {
    padding-right: calc(var(--bs-gutter-x) * 1);
    padding-left: calc(var(--bs-gutter-x) * 1);
  }
  hr {
    width: 100%!important;
    border: 2px solid;
  }
  .hero-deployment-bg-home {
    background: #001453 url('/assets/img/deployment-mobile.jpg') center bottom / cover no-repeat;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    min-height: 70vh;
    padding-bottom: 48px;
    position: relative;
  }
  .hero-text-block {
    padding-top: 2em;
  }
  .hero-bg h1 {
    font-size: 30px;
    text-align: center;
  }
  .hero-bg h1 small {
    font-size: 19px;
  }
  .hero-text-block {
    padding-top: 0;
    margin-top: 0;
  }
  h2 {
    font-size: 3em;
    line-height: 1.1;
    text-align: center;
  }
  h3 {
    font-size: 1.5em;
  }
  h4 {
    
  }
  .idefend-logo-mid {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    float: left;
  }
  .special-operations-cta {
    top: 10px;
  }
  a.big-cta-button .big-cta-button-title, a.big-cta-box .big-cta-button-title {
    font-size: 18px;
  }
  a.big-cta-button .big-cta-button-subtitle, a.big-cta-box .big-cta-button-subtitle {
    font-size: 14px;
  }
  .big-cta-button {
    padding: 10px 20px!important;
    font-size: 16px;
  }
  .security-solutions {
    padding-top: 1em;
  }
  .security-solutions-tag {
    font-size: 1.5em;
    text-align: center;
  }
  .container-idefend-delivers {
    background-color: #DFE1E3;
  }
  .training-image {
    background: #001453 url('/assets/img/training-mobile-new.jpg') center bottom / cover no-repeat;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    min-height: 22vh;
    height: 200px;
    padding-bottom: 48px;
    position: relative;
  }
  .hero-bg-contact-shield {
    background-size: 860px!important;
    padding-bottom: 10em!important;
  }
  .hero-bg-contact {
    padding-left: 0;
    padding-right: 0;
  }
  .hero-bg-contact-shield {
    padding-left: 10px;
    padding-right: 10px;
  }
  .hero-bg-contact .hero-text-block p {
    font-size: 16px!important;
  }
  .contact-info {
    text-align: center;
  }
  footer {
    text-align: center;
  }
}



/* Generic Elements */
.hero-deployment-bg {
  position: relative;
  width: 100vw;
  min-height: 50em;
  margin-left: calc(-1 * (100vw - 100%)/2);
  margin-right: calc(-1 * (100vw - 100%)/2);
  background: 
    linear-gradient(to top, rgba(0, 20, 83, 0.8) 0, rgba(0, 20, 83, 0) 4em);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  padding-bottom: 48px;
  overflow: hidden;
}
.headline-tag {
  font-family: "Aldrich", "Trebuchet MS", "Arial", sans-serif;
  font-size: 2.5em;
  line-height: 1.25em;
  text-transform: uppercase;
  color: #878b8e;
}
.icon-background-element-bottom-right {
  background: url('/assets/img/Abouticonbkgd.webp') right no-repeat;
  background-size: 1080px auto;
  min-height: 38em;
  display: flex;
  z-index: -1;
  max-width: 100%;
  margin-top: -15em;
  position: relative;
  right: -15em;
}

@media (max-width: 600px) {
  .icon-background-element-bottom-right {
    background-size: 100vw;
    right: unset;
    min-height: 15em;
    margin-top: unset;
  }
  h4.text-center-mobile {
    text-align: center;
  }
}
.contact-special-footer h4 {
  text-align: center;
  margin: 0;
  font-size: 1rem;
}
@media (min-width: 1081px) {
  .icon-background-element-bottom-right {
    /* min-height: 66em;
    margin-top: -25em; */
  }
}
.btn-primary {
  background-color: #001453;
  color: #fff;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.btn-primary:hover {
  background-color: #002A8B;
}
.contact-form span {
  color: red;
}
/* End Generic Elements */



/* About Us Section */
.hero-deployment-bg-about {
  background: 
    url('/assets/img/AboutUs.webp') top center / cover no-repeat;
}
@media (max-width: 600px) {
  .hero-deployment-bg-about {
    background: 
      url('/assets/img/AboutUs-mobile.webp') top center / cover no-repeat;
    background-size: 450px;
  }
  .hero-deployment-bg {
    min-height: 30em;
  }
}


.leadership-team hr {
  /* margin: .5rem; */
}
.leadership-team h2 {
  font-size: 3em;
}
.leadership-team h2 small {
  font-size: .6em;
  font-family: "Aldrich", "Trebuchet MS", "Arial", sans-serif;
}

.staff-bio-title h2 {
  font-size: 4em;
  text-align: left;
}
.staff-bio-title h4 {
  font-size: 1.5em;
  text-align: left;
}
.staff-bio-inside-padding {
  padding: 0em 3em 0em;
}

.contact-special-footer {
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
}

@media (max-width: 600px) {
  .leadership-team h2 small {
    line-height: .5em;
    line-break: auto;
  }
  .leadership-top {
    padding-top: 2em!important;
  }
  .leadership-top img {
    padding-bottom: 2em!important;
  }
  .about-staff-bios-bottom {
    padding-left: 0;
    padding-right: 0;
  }
  .staff-bio-inside-padding {
    padding: 0 1em 0;
  }
  .staff-bio-title {
    padding-bottom: 2em;
  }
  .staff-bio-title h2 {
    text-align: center;
    margin-bottom: 0;
  }
  .staff-bio-title h4 {
    text-align: center;
    font-size: 10px;
  }
  .staff-bio-title hr {
    border-top-width: 1px;
    border-bottom-width: 1px;
    margin-top: 2px;
    margin-bottom: 2px;
  }
  .contact-special-footer h4 {
    font-size: 10px;
  }
}
/* End About Us Section */



/* Services Section */
.hero-deployment-bg-services {
  background: 
    url('/assets/img/Services.webp') top center / cover no-repeat;
}
.gray-infoblock {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
  padding: 3em 15em!important;
  color: #01030A;
}
.gray-infoblock p {
  font-size: 16px;
}
.gray-infoblock ul {
  padding-left: 1.5rem;
}
.gray-infoblock li {
  background: url('/assets/img/IDefendicon.png') no-repeat left top; /* <-- change `left` & `top` too for extra control */
  margin-bottom: 2rem;
  padding: 0px 0px 3px 30px;
  /* reset styles (optional): */
  list-style: none;
  font-size: 16px;
  font-weight: bold;
}
.gray-infoblock li::marker {
  margin-top: -3em;
  vertical-align: top;
}
.products-and-services {
  line-height: 1.25rem;
}
.products-and-services-container {
  max-width: 1080px;
}
.products-and-services-title h2 {
  font-size: 3.5em;
}
.products-and-services-title h4 {
  margin-bottom: 0;
}
.products-and-services-item {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
}
.products-and-services-item h2 {
  font-size: 45px;
}
.products-and-services-item li {
  font-size: 16px;
  color: #01030A;
}
@media (max-width: 600px) {
  .hero-deployment-bg-services {
    background: 
      url('/assets/img/Services-mobile.webp') top center / cover no-repeat;
  }
  .gray-infoblock {
    padding: 3em!important;
  }
  .products-and-services { 
    padding-left: 0;
    padding-right: 0;
  }
  .products-and-services-item {
    background-size: 150vw!important;
  }
  .service-icon {
    text-align: center;
    padding: 3em;
  }
  .service-text {
    padding-left: 10px;
    padding-right: 10px;
  }
  .service-text h2 {
    font-size: 25px;
    line-height: 1.1;
  }
}
/* End Services Section */


/* Services - Special Operations Section */
.hero-bg-special-ops {
  background: url('/assets/img/SpecialOps-bg.webp') center center / cover no-repeat; margin-left: calc(-1 * (100vw - 100%)/2); margin-right: calc(-1 * (100vw - 100%)/2); width: 100vw;
}
.hero-special-ops-bg .hero-text-block h1 {
  width: 40%!important;
}
@media (max-width: 600px) {
  .hero-bg-special-ops {
    background: url('/assets/img/SpecialOps-bg-mobile.jpg') center center / cover no-repeat;
  }
  .hero-special-ops-bg {
    position: relative;
    top: 27em;
  }
  .hero-special-ops-bg .hero-text-block h1 {
    width: unset!important;
  }
  .clock-shield {
    text-align: center;
  }
  .clock-shiled-image {
    margin-top: 5em;
    margin-bottom: 5em;
    width: 65%;
  }
  .investigate-image {
    text-align: center;
  }
  .investigate-image img {
    margin-top: 5em;
    margin-bottom: 5em;
    width: 45%;
  }
}
.mini-head-text-block {
  margin-top: 3em;
  margin-bottom: 3em;
}
.mini-head-text-block h2 {
  font-size: 5.625em;
  line-height: 1em;
}
.mini-head-text-block h2 small {
  font-family: "Aldrich", "Trebuchet MS", "Arial", sans-serif;
  font-size: .5em;
  color: #878b8e;
  line-height: 1em;

}
@media (max-width: 600px) {
  .mini-head-text-block h2 {
    font-size: 3.4em;
    text-align: center;
  }
  .headline-tag {
    font-size: 12px;
    text-align: center;
    float: left;
  }
  .mini-head-text-block .headline-tag {
    float: left;
    text-align: center;
  }
  .mini-head-text-block {
    margin-bottom: -3em;
  }
  .hero-special-ops-banner .mini-head-text-block {
    
  }
  .hero-special-ops-banner .mini-head-text-block h2 {
    font-size: 30px;
    text-align: center;
  }
  .hero-special-ops-banner .mini-head-text-block .headline-tag {
    font-size: 16px;
  }
}
.mini-head-text-block .headline-tag {
  font-size: 2em;
  color: white;
  line-height: 1em;
  font-weight: light;
}
/* End Services - Special Operations Section */


/* Contact Page */
.hero-bg-contact { border-bottom: none; background: white; }
.hero-bg-contact-shield {
  background-color: unset;
  background: url('/assets/img/shild-bg.webp') no-repeat center top;
  background-size: 1245px auto;
  padding-bottom: 18em;
  padding-top: 10em;
}
@media (min-width: 1081px) {
  .hero-bg-contact-shield {
    background-size: 1920px auto;
    padding-top: 48em;
    margin-top: -35em;
  }
}
.contact-form-container {
  /* max-width: 820px; */
}
.contact-info img {
  width: 65%;
  margin: 0 1em 2em;
}
.contact-info a {
  font-size: 1em;
  color: #001453;
}
.contact-info p {
  margin-top: .75em;
  font-size: 1.75em;
  color: #001453;
}
/* End Contact Page */