/* ============================================
   RESET AND BASE STYLES
   ============================================ */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html { 
    font-synthesis-weight: none; 
    font-synthesis-style: none; 
}

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

/* Prevent scrollbar shift when modal opens */
body.modal-open {
    padding-right: 0 !important;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */
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;  
}

p {
    font-size: 1.4em;
}

li {
    font-size: 1.4em;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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


/* ============================================
   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 UTILITY 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 Colors */
.text-blue-800 { color: #001453; }
.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; }

/* Background Colors */
.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 Utilities */
.font-black { font-weight: 900; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-relaxed { line-height: 1.625; }


/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background-color: #DFE1E3 !important;
    padding: 0;
    min-height: 80px;
}

.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;
}

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

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

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

/* Dropdown Menu */
.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;
}

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


/* ============================================
   ANIMATIONS
   ============================================ */
/* 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 */
@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;
}


/* ============================================
   CAROUSELS
   ============================================ */
/* Main Carousel with Outside Arrows */
.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    max-height: 204px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-wrapper .carousel,
.carousel-wrapper .carousel-inner,
.carousel-wrapper .carousel-item {
    height: 100%;
}

.carousel-wrapper .carousel-item img {
    max-height: 204px;
    width: auto;
    object-fit: contain;
}

.carousel-wrapper .carousel-control-prev,
.carousel-wrapper .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    opacity: 1;
    transition: opacity 0.15s ease;
    background: none;
    border: 0;
    padding: 0;
    text-align: center;
  /*  background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-wrapper .carousel-control-prev {
    left: 0;
}

.carousel-wrapper .carousel-control-next {
    right: 0;
}

.carousel-wrapper .carousel-control-prev-icon,
.carousel-wrapper .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-size: 100% 100%;
}

/* Black SVG arrows */
.carousel-wrapper .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ED9202'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-wrapper .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ED9202'%3e%3cpath d='M4.646 1.646a.5.5 0 0 0 0 .708L10.293 8 4.646 13.646a.5.5 0 0 0 .708.708l6-6a.5.5 0 0 0 0-.708l-6-6a.5.5 0 0 0-.708 0z'/%3e%3c/svg%3e");
}

.carousel-wrapper .carousel-control-prev:hover,
.carousel-wrapper .carousel-control-next:hover {
    opacity: 0.8;
    background-color: #f8f9fa;
}

.carousel-wrapper .carousel-control-prev:focus,
.carousel-wrapper .carousel-control-next:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Carousel Responsive */
@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-wrapper .carousel-control-prev,
    .carousel-wrapper .carousel-control-next {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .carousel-wrapper {
        padding: 0;
    }
    
    .carousel-wrapper .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-wrapper .carousel-control-next {
        right: 10px;
    }
    
    .carousel-wrapper .carousel-control-prev,
    .carousel-wrapper .carousel-control-next {
        background-color: rgba(255, 255, 255, 0.9);
    }
}


/* ============================================
   MODALS
   ============================================ */
/* Modal Sizing */
@media (min-width: 992px) {
    .modal-lg {
        max-width: 80%;
    }
}

@media (min-width: 1920px) {
    .modal-lg {
        max-width: 1640px;
    }
}

/* Modal Content */
.modal-content {
    border: 10px solid #878B8E;
    border-radius: 0;
}

/* Modal Body */
.modal-body {
    position: relative;
    overflow: hidden;
}

.modal-body::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 450px;
    background-image: url('/assets/img/advanced_actions_bgd.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.modal-body .row {
    position: relative;
    z-index: 1;
}

.modal-body .btn-close {
    position: relative;
    z-index: 10;
}

.modal-body p {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 400;
}

/* Modal Backdrop */
.modal-backdrop {
    background-color: #001453;
}

.modal-backdrop.show {
    opacity: 0.89;
}

/* Modal Carousel Arrows */
.carousel .carousel-inner {
    width: 85%;
    margin: 0 auto;
}

.modal .carousel-control-prev,
.modal .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    opacity: 1;
    background: none;
    border: 0;
    padding: 0;
}

.modal .carousel-control-prev {
    left: 0;
}

.modal .carousel-control-next {
    right: 0;
}

.modal .carousel-control-prev-icon,
.modal .carousel-control-next-icon {
    background-color: #001453;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
}

.modal .carousel-control-prev:hover .carousel-control-prev-icon,
.modal .carousel-control-next:hover .carousel-control-next-icon {
    background-color: #002A8B;
}

/* Modal Carousel Responsive */
@media (max-width: 576px) {
    .modal .carousel {
        padding: 0 50px;
    }
    
    .modal .carousel-control-prev,
    .modal .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .modal .carousel-control-prev-icon,
    .modal .carousel-control-next-icon {
        width: 35px;
        height: 35px;
    }
}


/* ============================================
   GENERIC COMPONENTS
   ============================================ */
.container-larger {
    max-width: 1600px;
}

.blue-box-reverse {
    background-color: #001453;
    color: white;
    width: auto;
    margin: 0 auto;
}

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

.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;
}

.btn-primary {
    background-color: #001453;
    color: #fff;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.btn-primary:hover {
    background-color: #002A8B;
}

.big-cta-button {
    background-color: #002A8B;
}

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 {
    font-family: "Anton", "Impact", "Arial Black", sans-serif; 
    font-size: 35px;
}

a.big-cta-button .big-cta-button-subtitle {
    font-family: "Aldrich", "Trebuchet MS", "Arial", sans-serif;
    font-size: 20px;
}

.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;
}


/* ============================================
   HOME PAGE
   ============================================ */
.advanced-actions {
    border-bottom: 13px solid #001453;
    background-color: #fbb040;
}
.advanced-actions-banner-logo {
    background-image: url('/assets/img/advanced-actions-shield-wide.svg');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
}
.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;
}

.security-solutions-tag {
    font-size: 3.125em;
    color: #878B8E;
    margin-bottom: 0;
    line-height: 0.7;
    padding-top: 0.3em;
}

.security-solutions hr {
    color: #878B8E;
    border-top-width: 3px;
}


/* ============================================
   ABOUT PAGE
   ============================================ */
.hero-deployment-bg-about {
    background: url('/assets/img/AboutUs.webp') top center / cover no-repeat;
}

.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;
}

.contact-special-footer h4 {
    text-align: center;
    margin: 0;
    font-size: 1rem;
}


/* ============================================
   SERVICES PAGE
   ============================================ */
.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;
    margin-bottom: 2rem;
    padding: 0px 0px 3px 30px;
    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;
}

/* Special Operations */
.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;
}

.mini-head-text-block .headline-tag {
    font-size: 2em;
    color: white;
    line-height: 1em;
    font-weight: light;
}


/* ============================================
   CONTACT PAGE
   ============================================ */
.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: 13em;
}

.contact-info img {
    width: 65%;
    margin: 0 1em 2em;
}

.contact-info a {
    font-size: 1.75em;
    color: #001453;
}

.contact-info p {
    margin-top: .75em;
    font-size: 1.75em;
    color: #001453;
}

.contact-form span {
    color: red;
}


/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .hero-deployment-bg-home {
        background: #001453 url('/assets/img/deployment-mobile.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;
    }
    
    .advanced-actions .advanced-actions-content {
        margin-top: 0;
    }

    .advanced-actions-banner-logo {
        background-image: url('/assets/img/advanced-actions-shield-mobile.png');
        background-position: center top;
        padding-bottom: 11em;
        max-height: unset;
    }

    .advanced-actions-banner-logo img {
        padding: 2em 0;
        max-height: unset!important;
        max-width: 70%;
    }

    .hero-text-block {
        padding-top: 0;
        margin-top: 0;
    }
    
    .hero-bg h1 {
        font-size: 3em;
        text-align: center;
    }
    
    .hero-bg h1 small {
        font-size: 0.7em;
    }
    
    h2 {
        font-size: 3em;
        text-align: center;
    }
    
    h3 {
        font-size: 1.5em;
    }
    
    .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 {
        font-size: 18px;
    }
    
    a.big-cta-button .big-cta-button-subtitle {
        font-size: 16px;
    }
    
    .big-cta-button {
        padding: 10px 20px!important;
        font-size: 16px;
    }
    
    .security-solutions {
        background-color: #e0e1e3;
        padding-top: 1em;
    }
    
    .security-solutions-tag {
        font-size: 1.5em;
        text-align: center;
    }
    
    footer {
        text-align: center;
    }
}

@media (min-width: 1081px) {
    .hero-bg-contact-shield {
        background-size: 1920px auto;
        padding-top: 48em;
        margin-top: -35em;
    }
}

/* Modal transition override */
.modal.no-animation,
.modal.no-animation .modal-dialog {
    transition: none !important;
}

.modal.no-animation.fade {
    opacity: 1 !important;
}