/* === BRAND COLORS === */
:root {
  --color-primary: #EA580C; /* orange-600 */
  --color-primary-light: #FFF7ED; /* orange-100 */
  --color-text-dark: #1F2937; /* gray-800 */
  --color-text-base: #4B5567; /* gray-600 */
}

/* === GLOBAL HEADER & MEGA-MENU === */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  background-color: white; 
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #f3f4f6;
  z-index: 100;
  border-radius: 0.75rem;
  margin-top: 0.5rem;
}
.mega-menu-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 700px;
  padding: 2rem 2.5rem;
}
.mega-menu-column h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
  display: inline-block;
}
.mega-menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mega-menu-column ul a {
  color: var(--color-text-base);
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mega-menu-column ul a:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}
.group.mega-menu-group:hover .mega-menu {
  display: block;
}

/* === MOBILE FLYOUT MENU === */
#mobile-flyout-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100%;
  background-color: white;
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
  z-index: 200;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
#mobile-flyout-menu.open {
  right: 0;
}
#mobile-flyout-menu .header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  background-color: #f9fafb;
}
#mobile-flyout-menu .header img {
  height: 2.5rem;
}
#mobile-flyout-menu .content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#mobile-flyout-menu .content a,
#mobile-flyout-menu .content div:has(.accordion-toggle) {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}
#mobile-flyout-menu .content a:hover,
#mobile-flyout-menu .content div:has(.accordion-toggle):hover .accordion-toggle {
  background-color: #f9fafb;
  color: var(--color-primary);
}
#mobile-flyout-menu .content a.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}
.accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
  padding: 0; 
  font-weight: 600;
  color: var(--color-text-dark);
}
div:has(.accordion-toggle):hover .accordion-toggle {
  color: var(--color-primary);
}
.accordion-content {
  display: none;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  border-left: 2px solid #e5e7eb;
}
.accordion-content a {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}
#mobile-flyout-menu .content a[href^="tel:"] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}
#mobile-flyout-menu .footer {
  margin-top: auto;
  padding: 1.5rem;
  border-top: 1px solid #f3f4f6;
  background-color: #f9fafb;
}
#mobile-flyout-menu .footer a.contact-btn {
  display: block;
  text-align: center;
  background-color: var(--color-primary);
  color: white;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}
#mobile-flyout-menu .footer a.contact-btn:hover {
  background-color: #c2410c;
}
#menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* === KEY STATISTICS BAR === */
#stats-bar {
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}
.stat-item .number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.stat-item .label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-top: 0.5rem;
}

/* === SERVICES FLIPPING CARDS === */
.flip-card-container {
  perspective: 1000px;
  min-height: 380px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s;
  transform-style: preserve-3d;
}

/* Desktop Hover Logic */
@media (min-width: 1024px) {
  .flip-card-container:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  border: 1px solid #f3f4f6;
}
.flip-card-front {
  background-color: white;
  padding: 2.5rem;
  align-items: flex-start;
}
.flip-card-front .icon-wrapper {
  width: 4rem;
  height: 4rem;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.flip-card-front .product-image {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}
.flip-card-front h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
}
.flip-card-front p {
  font-size: 1rem;
  color: var(--color-text-base);
}
.flip-card-back {
  background-color: var(--color-text-dark);
  color: white;
  transform: rotateY(180deg);
  padding: 1.5rem;
  justify-content: flex-start;
}
.flip-card-back .flip-card-back-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}
.flip-card-back h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}
.flip-card-back ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.flip-card-back ul li {
  font-size: 0.875rem;
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.flip-card-back .list-icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* === NEWS/BLOG SECTION === */
.blog-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f3f4f6;
}
.blog-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}
.blog-card-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
}
.blog-card-content {
  padding: 1.5rem;
}
.blog-card-date {
  font-size: 0.875rem;
  color: var(--color-text-base);
  margin-bottom: 0.5rem;
}
.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.blog-card-snippet {
  font-size: 1rem;
  color: var(--color-text-base);
  margin-bottom: 1rem;
}
.blog-card-link {
  font-weight: 600;
  color: var(--color-primary);
  transition: all 0.2s ease;
}
.blog-card-link:hover {
  text-decoration: underline;
}

/* === CLIENT LOGO MARQUEE === */
.logo-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 3rem 0;
  background-color: white;
}
.logo-marquee-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  background: linear-gradient(to right, white, rgba(255, 255, 255, 0));
}
.logo-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  background: linear-gradient(to left, white, rgba(255, 255, 255, 0));
}
.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  padding: 0 2rem;
  flex-shrink: 0;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === PROJECT FILTER GALLERY === */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 500;
  color: var(--color-text-base);
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  background-color: #e5e7eb;
  color: var(--color-text-dark);
}
.filter-btn.active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.project-card {
  transition: transform 0.3s ease, opacity 0.3s ease;
  animation: fadeIn 0.5s ease;
}
.project-card.hidden {
  display: none;
}
.flip-card-inner.is-flipped {
  transform: rotateY(180deg);
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 1023px) {
  .flip-card-front::after {
    content: 'Tap for details';
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    background-color: var(--color-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    z-index: 10;
  }
  .flip-card-inner.is-flipped .flip-card-front::after {
    opacity: 0;
  }
}

/* === SHOP & CART STYLES === */
.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--color-primary);
  color: white;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  border: 2px solid white;
}
.cart-count-badge-mobile {
  background-color: var(--color-primary);
  color: white;
  padding: 0 0.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}
.product-card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -4px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}
.product-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-image {
  transform: scale(1.05);
}
.product-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.add-to-cart-btn {
  background-color: var(--color-primary);
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
}
.add-to-cart-btn:hover {
  background-color: #c2410c;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}
.cart-quantity-input {
  width: 4rem;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
}

/* === CONFIGURATOR UI === */
#config-step-2, #config-results-wrapper {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
#config-step-2.visible, #config-results-wrapper.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.config-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .config-card-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .config-card-grid--levels { grid-template-columns: repeat(3, 1fr); }
}
.config-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background-color: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
}
.config-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}
.config-card.selected {
  border-color: var(--color-primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.3);
  transform: translateY(0);
}
.config-card i-lucide {
  color: var(--color-primary);
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
}
.config-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: center;
}
.config-results__card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-height: 460px;
  overflow-y: auto;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
}
@media (min-width: 768px) {
  .config-results__card-grid { grid-template-columns: repeat(3, 1fr); }
}
.config-product-card {
  position: relative;
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.config-product-card__quantity {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--color-primary);
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  border: 2px solid white;
}
.config-product-card__image {
  width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.config-product-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.4;
}
.config-cta-button {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}
.config-cta-button:hover {
  background-color: #c2410c;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
#config-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--color-primary-light);
  border: 1px solid var(--color-primary);
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#config-results-collapsible {
  max-height: 1000px;
  padding: 1.5rem;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}
#config-results-collapsible.closed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.config-results-icon {
  transition: transform 0.3s ease;
  color: var(--color-primary);
}
#config-results-collapsible.closed + #config-results-header .config-results-icon {
  transform: rotate(-90deg);
}
#config-results-collapsible.closed + #config-results-header {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  border-bottom: 1px solid var(--color-primary);
}
.configurator-section {
  position: relative;
  overflow: hidden;
}
.configurator-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('configurator.png'); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}
.configurator-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.85);
  z-index: 2;
}
.configurator-section .container {
  position: relative;
  z-index: 3;
}

/* =========================================
   RADIX GLOBAL EXPERIENCE PACK
   ========================================= */

/* 1. Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #111827; 
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
  border: 2px solid #111827;
}
::-webkit-scrollbar-thumb:hover {
  background: #c2410c;
}

/* 2. Selection */
::selection {
  background: var(--color-primary);
  color: white;
}

/* 3. Glassmorphism Header (Override) */
header.sticky {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 4. Project Detail Modal */
.radix-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.radix-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.radix-modal-content {
  background: white;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.radix-modal-backdrop.active .radix-modal-content {
  transform: scale(1);
}
.radix-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}
.radix-modal-close:hover {
  background: #e5e7eb;
  color: var(--color-primary);
  transform: rotate(90deg);
}

/* 5. Typing Effect */
.typing-cursor::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--color-primary);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* === AOS FALLBACK (CRITICAL FIX) === */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
body.aos-initialized [data-aos] {
  opacity: 0 !important;
}
body.aos-initialized [data-aos].aos-animate {
  opacity: 1 !important;
}

/* === 6. RADIX ULTRA-TECH UPGRADE === */

/* Magnetic Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}
.custom-cursor.cursor-hover {
    width: 50px;
    height: 50px;
    background-color: rgba(234, 88, 12, 0.3);
    border-color: transparent;
}
/* Hide default cursor only on non-touch devices */
@media (pointer: fine) {
    body { cursor: none; }
    a, button { cursor: none; }
}

/* Scroll Progress Bar */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-primary);
    z-index: 10001;
    animation: scroll-progress linear;
    animation-timeline: scroll();
}
@keyframes scroll-progress {
    from { width: 0%; }
    to { width: 100%; }
}

/* === 7. RADIX AI CHATBOT STYLES === */
.radix-chat-widget { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; font-family: 'Inter', sans-serif; }
.radix-chat-btn { width: 60px; height: 60px; background: var(--color-primary); border-radius: 50%; box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.5); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); color: white; position: relative; }
.radix-chat-btn:hover { transform: scale(1.1) rotate(-5deg); box-shadow: 0 15px 30px -5px rgba(234, 88, 12, 0.6); }
.radix-chat-btn svg { width: 32px; height: 32px; transition: transform 0.3s ease; }
.radix-chat-btn.open svg { transform: rotate(90deg); }

.radix-chat-window { position: absolute; bottom: 80px; right: 0; width: 380px; height: 600px; max-height: 80vh; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(0,0,0,0.05); border-radius: 1.5rem; box-shadow: 0 20px 60px -10px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; transform: scale(0); opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.radix-chat-window.active { transform: scale(1); opacity: 1; visibility: visible; }

.chat-header { background: #111827; padding: 1.5rem; color: white; display: flex; align-items: center; gap: 1rem; }
.chat-bot-avatar { width: 40px; height: 40px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-primary); }
.chat-status-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; display: inline-block; margin-right: 6px; }

.chat-messages { flex: 1; padding: 1.5rem; overflow-y: auto; background: #f9fafb; display: flex; flex-direction: column; gap: 1rem; }
.message { max-width: 80%; padding: 0.75rem 1rem; border-radius: 1rem; font-size: 0.95rem; line-height: 1.5; animation: slideIn 0.3s ease; }
.message.bot { background: white; border: 1px solid #e5e7eb; color: #1f2937; border-bottom-left-radius: 0.25rem; align-self: flex-start; }
.message.user { background: var(--color-primary); color: white; border-bottom-right-radius: 0.25rem; align-self: flex-end; box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2); }
.message a { color: #EA580C; text-decoration: underline; font-weight: 600; }

.chat-input-area { padding: 1rem; background: white; border-top: 1px solid #f3f4f6; display: flex; gap: 0.5rem; }
.chat-input { flex: 1; border: 1px solid #e5e7eb; padding: 0.75rem 1rem; border-radius: 9999px; outline: none; transition: border-color 0.2s; }
.chat-input:focus { border-color: var(--color-primary); }
.chat-send-btn { background: #111827; color: white; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: background 0.2s; }
.chat-send-btn:hover { background: var(--color-primary); }

@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }





/* === RADIX JUSTIFIED PARAGRAPHS ONLY === */

/* 1. JUSTIFY PARAGRAPHS
   This aligns text to both the left and right edges for that straight "block" look.
   We exclude the Hero (#home) so the video text stays centered and cinematic. 
*/
section:not(#home):not(.h-\[95vh\]) p {
    text-align: justify !important;
    text-justify: inter-word;       /* Adds smart spacing between words */
    hyphens: auto;                  /* Prevents big gaps between words on mobile */
    
    /* Optional: Keeps the paragraph block centered if it's narrower than the screen */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 2. RESET LISTS
   Bulleted lists usually look messy if justified. We keep them Left-Aligned.
*/
section:not(#home):not(.h-\[95vh\]) ul, 
section:not(#home):not(.h-\[95vh\]) li {
    text-align: left !important;
}

/* 3. ENSURE STATS ARE CENTERED
   Just in case any global rule interferes.
*/
#stats-bar .stat-item {
    text-align: center !important;
}




/* === 6. RADIX ULTRA-TECH UPGRADE === */

/* Professional Precision Cursor */
.custom-cursor {
    width: 10px;
    height: 10px;
    background-color: var(--color-primary); /* Radix Orange */
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    
    /* Smooth "Spring" Animation */
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1), 
                height 0.3s cubic-bezier(0.19, 1, 0.22, 1), 
                background-color 0.2s,
                border 0.2s;
    
    /* Tech Glow Effect */
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.5); 
    backdrop-filter: blur(0px);
}

/* Hover State: Expands into a "Target Lock" Ring */
.custom-cursor.cursor-hover {
    width: 50px;
    height: 50px;
    background-color: rgba(234, 88, 12, 0.05); /* Transparent Orange Fill */
    border: 1px solid var(--color-primary);    /* Crisp Border */
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.2); /* Larger Glow */
    backdrop-filter: blur(1px); /* Subtle glass effect inside the ring */
}

/* Center Dot (Only appears on hover for precision clicking) */
.custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-cursor.cursor-hover::after {
    opacity: 1; /* Shows the tiny center dot when the ring expands */
}

/* Hide default cursor only on non-touch devices (Desktop/Laptop) */
@media (pointer: fine) {
    body { cursor: none; }
    a, button, input, select, textarea, .flip-card-container { cursor: none; }
}

/* Scroll Progress Bar */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-primary);
    z-index: 10001;
    animation: scroll-progress linear;
    animation-timeline: scroll();
    box-shadow: 0 0 10px var(--color-primary); /* Added glow to bar */
}
@keyframes scroll-progress {
    from { width: 0%; }
    to { width: 100%; }
}