/* Custom styles beyond Tailwind */

@import "tailwind.css";

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

.slide-text {
    background: #1d91bf;
    background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent-1) 65%, transparent) 1%,
    color-mix(in srgb, var(--accent-1) 78%, transparent) 51%,
    color-mix(in srgb, var(--accent-1) 80%, transparent) 100%
    );
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Typography enhancements */
.prose {
    max-width: 65ch;
    line-height: 1.6;
}

p:empty {
  display: none!important;
}

p:has(> br:only-child) {
  display: none;
}

.prose {
    padding-bottom:25px;
}

.prose p {
    margin-bottom: 1.5em;
}

/* Custom animations */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Form focus states */
.focus-ring {
    @apply focus:outline-none focus:ring-2 focus:ring-[var(--accent-1)] focus:border-transparent;
}
 
.btn {
    display: inline-block;
    border-radius: 0.375rem; /* Optional: Adjust for rounded corners */
    font-weight: 500;
}

.btn-small {
    padding: 0.5rem 1rem; /* 8px 16px */
    font-size: 0.875rem; /* 14px */
}

.btn-medium {
    padding: 0.75rem 1.5rem; /* 12px 24px */
    font-size: 1rem; /* 16px */
}

.btn-large {
    padding: 1rem 2rem; /* 16px 32px */
    font-size: 1.125rem; /* 18px */
}


.btn-primary {
    @apply bg-[var(--accent-1)] text-white hover:bg-[var(--accent-2)];
}

.btn-secondary {
    @apply bg-white text-[var(--accent-1)] border-2 border-[var(--accent-1)] hover:bg-[var(--accent-1)] hover:text-white;
}

/* Section spacing utilities */
.section-padding {
    @apply py-16 md:py-24;
}

/* Container max-width override */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Responsive image handling */
.img-responsive {
    @apply w-full h-auto object-cover;
}

/* Card styles */
.card {
    @apply bg-white rounded-lg shadow-md overflow-hidden transition-all duration-300 hover:shadow-lg;
}

/* Grid system enhancements */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-1);
}

/* Error pages */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.error-container {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
}

.error-container h1 {
    color: #333;
    margin-bottom: 1rem;
}

.error-container p {
    color: #666;
    margin-bottom: 2rem;
}
.btn-primary:hover {
    scale:1.03;
}
 
.btn-primary {
    background-color: #007bff;
    color: white;
    transition:all 300ms ease-out;
}

.btn-primary:hover {
    background-color: #0056b3;
} 

.logo-small {
    height: 32px;
}

.logo-medium {
    height: 46px;
}

.logo-large {
    height: 54px;
}

.logo-extra-large {
    height: 74px;
}

.header-small-logo {
    height: 36px;
}

.header-medium-logo {
    height: 52px;
}

.header-large-logo {
    height: 80px;
}

.header-extra-large-logo {
    height: 112px;
}

.small-spacer {
    margin-top: 40px;
}

.medium-spacer {
    margin-top: 62px;
}
.large-spacer {
    margin-top: 96px;
}
.extra-large-spacer {
    margin-top: 120px;
}

.hero-container {
    display:flex;
    flex-direction: row;
    align-items: center;

}
.hero-image {
    width: 130%;
    height: calc(100vh / 1.1);
    margin-top: calc(10vh);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    max-width:740px;
}



#hero {
    position:relative;
    background-attachment:fixed!important;
    background-size: cover!important;
    background-repeat:no-repeat!important;
    overflow:hidden;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    height: 100%;
    background: url('../images/hero-divider.svg'); 
}

.pointer-arrow {
    position: absolute;
    z-index:2;
    left:calc(50% - 25px);
    bottom:0px;
    width:50px;
    height:50px;
    background:url('/images/arrow.svg');
    background-repeat:no-repeat;
    filter:drop-shadow(0px 0px 10px var(--accent-1))
}


.bounce {
  display: inline-block;
  animation: smoothBounce 1s ease-in-out infinite;
}

@keyframes smoothBounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-container {
    z-index: 1;
}

footer {
    margin-top:0px!important;
}
 
#why-us .icon-card h3 {
    color:black!important;
}

body * {
    user-select: none;
}

body {
    overflow-x:hidden!important;
}
document {
    overflow:hidden;
}

/* Lottie Animation Styles */
.lottie-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lottie-container svg {
    max-width: 100%;
    max-height: 100%;
}

.lottie-loaded {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.lottie-container:not(.lottie-loaded) {
    opacity: 0.5;
}

.lottie-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

/* Lottie preview styles in admin */
.lottie-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.lottie-preview:hover {
    border-color: #9ca3af;
}

.lottie-preview.has-animation {
    border-style: solid;
    border-color: #10b981;
}
  
h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
}

nav a, a.btn {
    font-family: var(--nav-font);
    text-transform:uppercase;
    font-size:0.8em;
}

nav a:not(a[href="#capability"]) {
    letter-spacing:.7px;
}

h1, h2, h3 {
    font-weight: var(--main-header-weight)!important;
}

h4, h5, h6 {
    font-weight: var(--alt-header-weight)!important;
}

p {
    font-family: var(--paragraph-font)!important;
    font-weight: var(--paragraph-font-weight)!important;
}

h1, h2, h3, h4, h5, h6, p, div {
    user-select: text;
}

html {
   font-family: var(--paragraph-font); 
}

/* Icon card wrapper - ensure full height for grid consistency */
.icon-card-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Icon card hover effects - applied to inner container */
.icon-card {
    transition:all 400ms ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.icon-card:hover {
    transform:translateY(-15px);
}

/* Navigation active state for scroll-spy */
.nav-link-active {
    color: var(--accent-1) !important;
    position: relative;
}
 

/* Ensure non-active links don't have the underline */
nav a:not(.nav-link-active)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Mobile menu active state */
#mobile-menu .nav-link-active {
    background-color: var(--accent-1);
    color: white !important;
    border-radius: 4px;
}

/* Ensure icon card content is properly spaced */
.icon-card p:last-child {
    margin-top: 10px;
}

.contact-image { 
    max-height:275px;
    margin:auto;
    background-size: contain!important ;
    background-position: center!important;
    background-repeat: no-repeat!important;
}

a[href="#capability"] {
  display: inline-block;
  border-radius: 0.375rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: var(--accent-1) !important;
  color:white!Important;
}

a[href="#capability"]::after {
    display:none;
}
@media (min-width: 768px) {
    .md\:flex {
        align-items: center;
    }
}

@media screen and (max-width:600px) {
    #hero {
        padding-top: 85px;
        padding-bottom: 100px;
        height:auto;
        background-size:cover !important;
        flex-direction: column !important;
    }
    #hero .container {
        text-align:center!important;
    }
    #hero h1, #hero p {
        display:inline-block; 
        text-align:center!important;
    } 
    #hero::before {
        width: 150% !important;
        transform: rotate(270deg) translateX(-126px);
        bottom: -30px;
        top:auto!important;
    }
    .hero-container.container {
        flex-direction:column-reverse!important;
        gap:30px;
    }
    .hero-image {
        width:290px!important;
        height:290px!important;
        margin-top:30px!important;
    }
    #contact h2 {
        margin-bottom:0px!Important;
    }
    .contact-style-wrapper {
        padding:0px 2rem!important;
    }
    .icon-card h3 {
        font-size:1rem!important;
        line-height:1.3rem!important;
    }
    .icon-card {
        padding:1rem!important;
    }
}

 

/* Blackbox overlay */
.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
}

/* Show */
.video-overlay.is-open { display: flex; }

/* Box that holds the iframe */
.video-box {
  position: relative;
  width: min(90vw, 960px);
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

/* The video itself */
.video-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Close button */
.video-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: #000;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font: 600 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.video-close:focus { outline: 2px solid #fff; outline-offset: 2px; }

/* Optional: dim background click affordance */
.video-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
}

.video-source {
    width: 100%;
    padding-top: 60%;
    margin: auto;
    background-size: cover!important;
    background-position: center!important;
    cursor: pointer;
    position:relative;
}

.video-source::before {
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(187, 12, 12, 0.288);
}
.video-source::after {
    display: block;
    content: "";
    width: 60px;
    height: 60px;
    position: absolute;
    left: 50%;
    right: 0;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    bottom: 0;
    background: url(/images/play-button.svg);
    transition:all 300ms ease-out;
}

.video-source:hover::after {
   transform:scale(1.05) translateX(-49%) translateY(-50%);
}


table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;    
  overflow: hidden;
  font-size: 0.95rem;
  border: 1px solid rgba(1,1,1,0.1)
}

thead {
  background: linear-gradient(
    180deg,
    var(--accent-1),
    color-mix(in srgb, var(--accent-1) 92%, black)
  );
  color: #ffffff;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr {
  border-bottom: 1px solid #e6e9ef;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  th,
  td {
    padding: 12px;
  }

  table {
    font-size: 0.9rem;
  }
}

#hero {
  position: relative;
  z-index: 0;
  isolation: isolate; /* prevents weird stacking with children/pseudo elements */
}

#hero::before,
#hero::after {
  z-index: 1;
}

#hero canvas[data-hero-sprites="1"] {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
 
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg); /* or 1turn */
  }
}

.dot {
 background-color:var(--accent-2);
}
.dot-active {
  background-color:color-mix(in srgb, var(--accent-2) 50%, transparent);  
}

.dot, .dot-active {
    filter:drop-shadow(1px 1px 1px rgba(1,1,1,0.2));
}


.image-container img {
    transition: all 400ms ease-out;
}

.image-container:hover img {
   transform:scale(1.1)
}