
/*--------------------------------------------------------------
# Custom CSS
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Exo+2:wght@400;700&display=swap');

:root {
  --background-color: #0A0A1A;
  --default-color: #E0E0E0;
  --heading-color: #FFFFFF;
  --accent-color: #00BFFF; /* Neon Blue */
  --accent-color-2: #39FF14; /* Electric Green */
  --brand-color: #FF0000; /* Bright Red */
  --surface-color: rgba(10, 10, 30, 0.6); /* Semi-transparent dark blue for glassmorphism */
  --contrast-color: #FFFFFF;

  --nav-color: #E0E0E0;
  --nav-hover-color: #00BFFF;
  --nav-mobile-background-color: #0A0A1A;
  --nav-dropdown-background-color: #0A0A1A;
  --nav-dropdown-color: #E0E0E0;
  --nav-dropdown-hover-color: #00BFFF;

  --heading-font: 'Orbitron', sans-serif;
  --body-font: 'Exo 2', sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--default-color);
  font-family: var(--body-font);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%231a1a2e' fill-opacity='0.6'%3E%3Crect x='0' y='0' width='100' height='1'/%3E%3Crect x='0' y='0' width='1' height='100'/%3E%3C/g%3E%3C/svg%3E");
  cursor: none;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.1s ease;
    z-index: 9999;
}

/* Glassmorphism */
.glass-effect {
  background: var(--surface-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 30px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-weight: 700;
  text-shadow: 0 0 5px var(--accent-color);
}

.btn {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-color);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color-2);
    border-color: var(--accent-color-2);
}

.btn-secondary:hover {
    background: var(--accent-color-2);
    color: #000;
    box-shadow: 0 0 15px var(--accent-color-2);
}

/* Header */
.header {
    transition: all 0.3s ease;
}
.header.scrolled {
    background: rgba(10, 10, 30, 0.8);
    backdrop-filter: blur(5px);
}
.header .logo img {
    filter: brightness(0) invert(1) sepia(1) hue-rotate(-50deg) saturate(5);
}
.navmenu a:hover, .navmenu .active > a {
    text-shadow: 0 0 10px var(--accent-color);
}

/* Animated background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Circuit-trace cursor effect */
#circuit-trace {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.section-title h2 {
    position: relative;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    bottom: 0;
    left: calc(50% - 25px);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero .hero-content h1 {
    font-size: 4rem;
}

/* Products Section */
.product-card {
    transition: all 0.3s ease;
    padding: 30px;
    height: 100%;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--accent-color);
}

.product-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.btn-view {
    color: var(--accent-color-2);
    text-decoration: none;
    font-weight: 700;
}

/* Solutions Section */
.solutions .solution-item {
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}
.solutions .solution-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--accent-color);
}
.solutions .solution-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* New Solution Section v2 */
.solutions.section {
    position: relative;
    overflow: hidden;
}

.solutions.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:%2300bfff;opacity:0.3;%7D%3C/style%3E%3C/defs%3E%3Cg transform='translate(50,50)'%3E%3Cg%3E%3Ccircle class='a' r='2'/%3E%3C/g%3E%3Cg transform='translate(20,0) rotate(30)'%3E%3Ccircle class='a' r='3'/%3E%3C/g%3E%3Cg transform='translate(-20,0) rotate(-30)'%3E%3Ccircle class='a' r='2'/%3E%3C/g%3E%3Cg transform='translate(0,20) rotate(60)'%3E%3Ccircle class='a' r='3'/%3E%3C/g%3E%3Cg transform='translate(0,-20) rotate(-60)'%3E%3Ccircle class='a' r='2'/%3E%3C/g%3E%3Cg transform='translate(40,0) rotate(120)'%3E%3Ccircle class='a' r='3'/%3E%3C/g%3E%3Cg transform='translate(-40,0) rotate(-120)'%3E%3Ccircle class='a' r='2'/%3E%3C/g%3E%3Cg transform='translate(0,40) rotate(150)'%3E%3Ccircle class='a' r='3'/%3E%3C/g%3E%3Cg transform='translate(0,-40) rotate(-150)'%3E%3Ccircle class='a' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: background-pan 10s linear infinite;
    z-index: -1;
}

@keyframes background-pan {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 100% 100%;
    }
}

.solution-item-v2 {
    background: rgba(10, 20, 40, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease-in-out;
    height: 100%;
}

.solution-item-v2:hover {
    transform: translateY(-15px);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.5), 0 0 15px rgba(57, 255, 20, 0.3);
    border-color: rgba(0, 191, 255, 0.8);
}

.solution-icon-v2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    color: var(--accent-color);
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.solution-item-v2 h4 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.solution-item-v2 p {
    color: var(--default-color);
    font-size: 1rem;
    line-height: 1.6;
}

.animated-gradient-underline {
    position: relative;
    padding-bottom: 20px;
}

.animated-gradient-underline::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-image: linear-gradient(90deg, var(--accent-color), var(--accent-color-2));
    background-size: 200% 100%;
    animation: gradient-move 3s infinite linear;
    border-radius: 2px;
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Header Improvements */
.header {
    background: transparent;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(10, 10, 30, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navmenu a {
    position: relative;
}

.navmenu a:hover, .navmenu .active > a {
    color: var(--accent-color);
    text-shadow: 0 0 12px var(--accent-color);
}

.navmenu .active > a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--accent-color);
    animation: underline-grow 0.3s ease-out;
}

@keyframes underline-grow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: calc(100% - 30px);
        opacity: 1;
    }
}

/* Logo Color */
.header .logo img {
    filter: brightness(0) invert(1) sepia(1) hue-rotate(-50deg) saturate(10);
    -webkit-filter: drop-shadow(0 0 8px var(--brand-color));
            filter: drop-shadow(0 0 8px var(--brand-color));
}

.footer .logo .sitename {
    color: var(--brand-color);
}

/* Button Improvements */
.btn {
    box-shadow: 0 0 5px transparent;
    transition: all 0.4s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--accent-color);
}

.btn-secondary:hover {
    box-shadow: 0 0 20px var(--accent-color-2);
}



/* Tech Stack */
.scrolling-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrolling-wrapper::-webkit-scrollbar {
    display: none;
}

.tech-icon {
    display: inline-block;
    margin: 0 20px;
    text-align: center;
    font-size: 1.2rem;
}

.tech-icon i {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

/* Case Studies */
.case-study-card {
    padding: 30px;
}
.case-study-card .metric {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-color-2);
}

/* Footer */
.footer {
    background: #050510;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Careers Section */
.careers.section {
    position: relative;
    overflow: hidden;
}

.careers.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(10, 10, 30, 0.95), rgba(10, 10, 30, 0.8)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='grid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='%231a1a2e' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)' /%3E%3C/svg%3E");
    animation: background-pan 20s linear infinite;
    z-index: -1;
}

.job-card {
    padding: 35px;
    text-align: center;
    transition: all 0.4s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.job-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-color-2);
}

.job-card h4 {
    color: var(--accent-color-2);
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.job-card p {
    color: var(--default-color);
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.job-card .btn {
    margin-top: 20px;
    border-color: var(--accent-color);
    background: transparent;
    color: var(--accent-color);
}

.job-card .btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px var(--accent-color);
}

.careers .text-center a[href^="mailto:"] {
    color: var(--accent-color-2);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.careers .text-center a[href^="mailto:"]:hover {
    text-shadow: 0 0 10px var(--accent-color-2);
}

/* Footer Leadership Section */
.footer .leadership-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .leadership-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  color: var(--default-color);
}

.footer .leadership-list i {
  color: var(--accent-color);
  margin-right: 10px;
  font-size: 1.2rem;
}

.footer .leadership-list strong {
  font-weight: 700;
  color: var(--heading-color);
  margin-right: 5px;
}

.footer .leadership-list span {
  color: var(--accent-color-2);
  font-weight: 500;
  transition: all 0.3s ease;
  text-shadow: 0 0 8px transparent;
}

.footer .leadership-list li:hover span {
  color: #fff;
  text-shadow: 0 0 10px var(--accent-color-2);
}

/*--------------------------------------------------------------
# Responsive Media Queries
--------------------------------------------------------------*/

/* Large Desktop Screens */
@media (min-width: 1200px) {
  .hero .hero-content h1 {
    font-size: 4.5rem;
  }
}

/* Laptops */
@media (max-width: 1199.98px) {
  .hero .hero-content h1 {
    font-size: 3.5rem;
  }
}

/* Tablets */
@media (max-width: 991.98px) {
  .header .logo h1 {
    font-size: 20px;
  }

  .hero .hero-content {
    text-align: center;
  }

  .hero .hero-content h1 {
    font-size: 3rem;
  }

  .hero .hero-content p {
    font-size: 1rem;
  }

  .hero .row {
    flex-direction: column;
  }

  .hero .hero-image-container {
    margin-top: 40px;
  }

  .product-card,
  .solution-item-v2,
  .case-study-card,
  .job-card {
    margin-bottom: 30px;
  }

  .footer .footer-top .col-lg-4,
  .footer .footer-top .col-lg-2,
  .footer .footer-top .col-lg-3 {
    text-align: center;
  }

  .footer .social-links {
    justify-content: center;
  }
}

/* Mobile Devices */
@media (max-width: 767.98px) {
  .header .header-container {
    padding: 10px 15px;
  }

  .header .logo img {
    max-height: 30px;
  }

  .header .logo h1 {
    font-size: 18px;
  }

  .navmenu {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(10, 10, 30, 0.95);
    transition: 0.3s;
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }

  .mobile-nav-active .navmenu {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  .hero {
    height: auto;
    padding-top: 120px;
  }

  .hero .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero .hero-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .scrolling-wrapper {
    overflow-x: scroll;
    padding-bottom: 15px;
  }
}

@media (max-width: 575.98px) {
  .product-card,
  .solution-item-v2,
  .case-study-card,
  .job-card {
    padding: 20px;
  }

  .footer .footer-top .col-md-6 {
    text-align: center;
    margin-bottom: 30px;
  }

  .footer .leadership-list li {
    justify-content: center;
  }
}

@media (max-width: 375px) {
  .hero .hero-content h1 {
    font-size: 2rem;
  }
}

/* Disable cursor on touch devices */
@media (hover: none) {
  .cursor {
    display: none;
  }
  body {
    cursor: auto;
  }
}

/* Chat Widget */
#bitroot-chat {
  position: fixed;
  right: 15px;
  bottom: 90px;
  z-index: 9500;
}

#bitroot-chat-toggle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--accent-color);
  color: #000;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 0 rgba(0, 191, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#bitroot-chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-color);
}

#bitroot-chat-toggle .bi-x-lg {
  display: none;
}

#bitroot-chat.is-open #bitroot-chat-toggle .bi-chat-dots-fill {
  display: none;
}

#bitroot-chat.is-open #bitroot-chat-toggle .bi-x-lg {
  display: inline-block;
}

#bitroot-chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 340px;
  max-width: calc(100vw - 30px);
  height: 460px;
  max-height: 70vh;
  background: rgba(10, 10, 30, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#bitroot-chat.is-open #bitroot-chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.bitroot-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-weight: 700;
  font-size: 0.95rem;
}

.bitroot-chat-header button {
  background: none;
  border: none;
  color: var(--default-color);
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  line-height: 1;
}

.bitroot-chat-header button:hover {
  color: var(--accent-color);
}

#bitroot-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#bitroot-chat-messages .bitroot-msg {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

#bitroot-chat-messages .bitroot-msg.user {
  align-self: flex-end;
  background: var(--accent-color);
  color: #000;
  border-bottom-right-radius: 3px;
}

#bitroot-chat-messages .bitroot-msg.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: var(--default-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 3px;
}

#bitroot-chat-messages .bitroot-msg.error {
  align-self: center;
  background: rgba(255, 60, 60, 0.12);
  color: #ff8a8a;
  border: 1px solid rgba(255, 60, 60, 0.25);
  font-size: 0.8rem;
}

#bitroot-chat-messages .bitroot-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border-bottom-left-radius: 3px;
}

#bitroot-chat-messages .bitroot-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  animation: bitroot-typing-bounce 1.2s infinite ease-in-out;
}

#bitroot-chat-messages .bitroot-typing span:nth-child(2) { animation-delay: 0.15s; }
#bitroot-chat-messages .bitroot-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bitroot-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

#bitroot-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

#bitroot-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--default-color);
  font-size: 0.85rem;
  outline: none;
}

#bitroot-chat-input:focus {
  border-color: var(--accent-color);
}

#bitroot-chat-form button[type="submit"] {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: none;
  background: var(--accent-color);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bitroot-chat-form button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 575.98px) {
  #bitroot-chat {
    right: 12px;
    bottom: 82px;
  }
  #bitroot-chat-panel {
    width: calc(100vw - 24px);
    height: 65vh;
  }
}

/* Chat Widget — pre-chat lead form */
#bitroot-lead-form {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bitroot-lead-intro {
  margin: 0 0 2px;
  color: var(--default-color);
  font-size: 0.85rem;
}

#bitroot-lead-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--default-color);
  opacity: 0.85;
}

#bitroot-lead-form input,
#bitroot-lead-form select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--default-color);
  font-size: 0.85rem;
  outline: none;
}

#bitroot-lead-form input:focus,
#bitroot-lead-form select:focus {
  border-color: var(--accent-color);
}

#bitroot-lead-form select option {
  background: #0a0a1e;
  color: var(--default-color);
}

.bitroot-lead-error {
  margin: 0;
  font-size: 0.78rem;
  color: #ff8a8a;
}

#bitroot-lead-form button[type="submit"] {
  margin-top: 4px;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--accent-color);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

#bitroot-lead-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
