:root {
  --primary-color: #10B981;
  --secondary-color: #047857;
  --team-gradient: linear-gradient(135deg, #03261a, #053b28);
  --primary-gradient: linear-gradient(135deg, #10B981, #047857);
  --bg-color: #f8f9fa;
  --text-color: #212529;
  --footer-bg: #343a40;
  --footer-text: #f8f9fa;
  --navbar-bg: #ffffff;
    --form-bg: #faf5ff;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Fix mobile tap highlighting */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Gradient Text Highlights */
.navbar-brand, .text-primary {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.navbar {
  background-color: var(--navbar-bg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-link {
  font-weight: 500;
  color: var(--text-color) !important;
  transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

/* Gradient Hero Overrides */
.page-hero, .cta-section {
  background: var(--primary-gradient);
  color: white;
    margin-bottom: 4rem;
}

.hero-slider {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  display: flex;
}

.hero-overlay {
  background-color: rgba(0,0,0,0.5);
  padding: 3rem;
  border-radius: 10px;
  color: white;
}

.hero-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 10;
}

.hero-controls button {
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 2rem;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

.hero-controls button:hover {
  background: white;
}

.page-hero {
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 3rem;
}

.cta-section {
  padding: 4rem 0;
  text-align: center;
    margin-bottom: 4rem;
}

/* Gradient Buttons */
.btn-primary {
  background: var(--primary-gradient) !important;
  border: none !important;
  color: white !important;
  transition: opacity 0.3s !important;
}

.btn-primary:hover {
  opacity: 0.9;
}


/* Footer */
footer {
  background-color: #021a12;
  color: #f8f9fa;
}

.footer-top {
  padding: 3rem 0;
}

.footer-top h5 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-top a {
  color: #10B981;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-top a:hover {
  color: #f8f9fa;
}

.footer-bottom {
  background-color: #010d09;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #10B981;
  font-weight: bold;
  text-decoration: none;
}

/* Cards & Forms */
.team-card, .service-card {
  border: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  height: 100%;
}

.team-card:hover, .service-card:hover {
  transform: translateY(-5px);
}

.custom-form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


/* Global Overrides for Light Mode Theme Tinting */
.bg-white, .bg-light {
    background-color: var(--navbar-bg) !important;
}
.card, .custom-form, .p-4.bg-white, .text-bg-light {
    background-color: var(--navbar-bg) !important;
    border-color: rgba(0,0,0,0.05) !important;
}


/* Fix text-muted visibility inside the dark footer in Light Mode */
footer .text-muted {
    color: #adb5bd !important;
}


/* --- Premium Theme Accents --- */
/* Add a beautiful gradient top border to forms and cards */
.custom-form, .team-card, .service-card {
    position: relative;
    overflow: hidden;
    border: none !important; /* Remove standard borders */
}

.custom-form::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 10;
}

/* Give cards a subtle floating effect on hover with theme shadow */
.team-card:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Form input focus styling to match theme instead of default Bootstrap blue */
.form-control:focus, .form-select:focus, .btn:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem var(--primary-color) !important;
    outline: 0;
    /* We use an opacity filter on the shadow by making it slightly transparent */
}

html[data-theme="light"] .form-control:focus, html[data-theme="light"] .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,0.1) !important;
}

/* Style specific section headings if they have the 'text-primary' class */
h2.text-primary, h3.text-primary {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}






/* --- Full Section Theme Overrides --- */
/* Themed Gradient Form */
.custom-form {
    background: var(--primary-gradient) !important;
    color: white !important;
    border: none !important;
    padding: 2.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.custom-form h3, .custom-form label {
    color: white !important;
}

.custom-form .form-control, .custom-form .form-select {
    background: rgba(255,255,255,0.95) !important;
    color: #212529 !important;
    border: none !important;
    border-radius: 8px !important;
}

.custom-form .form-control:focus, .custom-form .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.2) !important;
    background: #ffffff !important;
}

.custom-form .form-control::placeholder {
    color: #6c757d !important;
}

/* Remove any gradient borders or pseudo-elements */
.custom-form::before {
    display: none !important;
}

/* Ensure background utility classes match the theme */
.bg-primary {
    background: var(--primary-gradient) !important;
}
.text-primary {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhancing Hover Effects */
.team-card, .service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.team-card:hover, .service-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
    z-index: 2;
}


/* --- Fix Camouflaged Buttons & Icons in Gradient Sections --- */
/* Invert buttons and icons that sit inside a gradient background */
.bg-primary .bg-primary, 
.custom-form .bg-primary,
.custom-form .btn-primary {
    background: white !important;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.bg-primary .bg-primary:hover,
.custom-form .btn-primary:hover {
    background: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Ensure text inside these inverted buttons takes the primary color */
.bg-primary .bg-primary i,
.custom-form .bg-primary i,
.custom-form .btn-primary {
    color: var(--primary-color) !important;
    font-weight: bold;
}


/* --- Meet Our Team Theme Section --- */
.theme-section {
    background: var(--primary-gradient) !important;
    color: white !important;
}

.theme-section h2, .theme-section p.text-muted {
    color: white !important;
    -webkit-text-fill-color: white !important;
}

/* Make sure cards inside the themed section pop out nicely */
.theme-section .card {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.theme-section .card h5 {
    color: var(--primary-color) !important;
    -webkit-text-fill-color: initial !important;
}

.theme-section .card .text-muted {
    color: #6c757d !important;
}


/* --- Fix Outline Buttons --- */
/* Global theme colors for outline buttons */
.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient, var(--primary-color)) !important;
    color: white !important;
    border-color: transparent !important;
}

/* Invert outline buttons if they are inside a colored background section */
.bg-primary .btn-outline-primary, 
.custom-form .btn-outline-primary,
.theme-section .btn-outline-primary {
    color: white !important;
    border-color: white !important;
}

.bg-primary .btn-outline-primary:hover, 
.custom-form .btn-outline-primary:hover,
.theme-section .btn-outline-primary:hover {
    background: white !important;
    color: var(--primary-color) !important;
}


/* --- Fix Input Text Visibility on Focus --- */
.custom-form .form-control:focus, 
.custom-form .form-select:focus,
.custom-form .form-control:active,
.custom-form .form-select:active {
    background: #ffffff !important;
    color: #212529 !important;
    -webkit-text-fill-color: #212529 !important;
}

.custom-form .form-select option {
    background: #ffffff !important;
    color: #212529 !important;
}

/* Fix text selection color inside forms */
.custom-form .form-control::selection,
.custom-form .form-select::selection {
    background: var(--primary-color) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
}


/* --- Fix Navbar Button Visibility --- */
/* Prevent the 'Get Quote' navbar button from hiding text when active/hovered */
.navbar-nav .nav-link.btn-primary.active, 
.navbar-nav .nav-link.btn-primary:hover {
    color: white !important;
    -webkit-text-fill-color: white !important;
}



/* --- Form Inputs in Dark Mode --- */
/* Keep inputs dark grey in dark mode to avoid over-saturation */
html[data-theme="dark"] .custom-form .form-control,
html[data-theme="dark"] .custom-form .form-select {
    background: rgba(30, 30, 30, 0.8) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

html[data-theme="dark"] .custom-form .form-control:focus,
html[data-theme="dark"] .custom-form .form-select:focus,
html[data-theme="dark"] .custom-form .form-control:active,
html[data-theme="dark"] .custom-form .form-select:active {
    background: rgba(45, 45, 45, 0.95) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

html[data-theme="dark"] .custom-form .form-control::placeholder {
    color: #adb5bd !important;
    -webkit-text-fill-color: #adb5bd !important;
}

html[data-theme="dark"] .custom-form .form-select option {
    background: #2b2b2b !important;
    color: #ffffff !important;
}


/* --- Fix Text Visibility inside Primary Backgrounds --- */
/* The user requested that text-muted elements inside a primary (gradient/solid) background should be pure white for contrast */
.bg-primary .text-muted {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* --- Fix Text Visibility inside Primary Backgrounds (Dark Mode Override) --- */
/* The dark mode .text-muted rule had higher specificity, so we must explicitly override it here */
html[data-theme="dark"] .bg-primary .text-muted,
.bg-primary .text-muted {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* --- Fix Text Visibility inside Custom Forms --- */
/* The user requested that text-muted elements inside custom-form (which has a primary/gradient background) should be pure white for contrast */
html[data-theme="dark"] .custom-form .text-muted,
.custom-form .text-muted {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* --- Fix Team Card Text Visibility --- */
/* The role text was invisible in light mode because it inherited a white text-fill-color from the parent theme-section */
.theme-section .card h4, .theme-section .card h5 {
    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;
}

.theme-section .card .text-muted {
    color: #6c757d !important;
    -webkit-text-fill-color: #6c757d !important;
}

html[data-theme="dark"] .theme-section .card .text-muted {
    color: #adb5bd !important;
    -webkit-text-fill-color: #adb5bd !important;
}

/* --- Dark Mode Variables --- */
html[data-theme="dark"] {
  --bg-color: #212529;
  --text-color: #f8f9fa;
  --footer-bg: #111111;
  --footer-text: #adb5bd;
  --navbar-bg: #1a1e21;
    --form-bg: #2d1e3d;
}

html[data-theme="dark"] .bg-white, 
html[data-theme="dark"] .bg-light {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

html[data-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

html[data-theme="dark"] .card, 
html[data-theme="dark"] .custom-form, 
html[data-theme="dark"] .p-4.bg-white {
    background-color: var(--navbar-bg) !important;
    color: var(--text-color) !important;
    border-color: #333 !important;
}

html[data-theme="dark"] .form-control, 
html[data-theme="dark"] .form-select {
    background-color: var(--bg-color) !important;
    border-color: #444 !important;
    color: var(--text-color) !important;
}

html[data-theme="dark"] .form-control:focus, 
html[data-theme="dark"] .form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(255,255,255,0.1) !important;
}

html[data-theme="dark"] .form-control::placeholder {
    color: #6c757d !important;
}

html[data-theme="dark"] .hero-controls button {
  background: rgba(0,0,0,0.7);
  color: white;
}

html[data-theme="dark"] .hero-controls button:hover {
  background: var(--primary-color);
}

.bg-team {
    background: var(--team-gradient) !important;
    color: white !important;
}
.bg-team .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.8) !important;
}
.bg-team h1, .bg-team h2, .bg-team h3, .bg-team h4, .bg-team h5, .bg-team h6 {
    color: white !important;
    -webkit-text-fill-color: white !important;
}

/* Beautiful UI Customizations for Tech Cards */
.tech-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    background-color: #fff;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
    border-color: var(--primary-color);
}

.tech-card:hover .icon-wrapper {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

html[data-theme="dark"] .tech-card {
    background-color: #2c3034 !important;
    border: 1px solid rgba(255,255,255,0.05);
}

html[data-theme="dark"] .tech-card:hover {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.5) !important;
    border-color: var(--primary-color);
}

/* Premium Backgrounds for Sections */
.section-tint {
    background-color: rgba(var(--bs-primary-rgb), 0.03) !important;
}
html[data-theme="dark"] .section-tint {
    background-color: transparent !important;
}

.section-pattern {
    background-color: #f8f9fa !important;
    background-image: radial-gradient(rgba(var(--bs-primary-rgb), 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}
html[data-theme="dark"] .section-pattern {
    background-color: transparent !important;
    background-image: radial-gradient(rgba(255,255,255, 0.05) 1px, transparent 1px);
}

/* Fix for Dark Mode Text Visibility in Beautified Sections */
html[data-theme="dark"] .tech-section h2,
html[data-theme="dark"] .tech-section p,
html[data-theme="dark"] .tech-card h4,
html[data-theme="dark"] .section-tint h2,
html[data-theme="dark"] .section-tint p,
html[data-theme="dark"] .section-tint .text-dark {
    color: #ffffff !important;
}

/* Fix Icon Hover Visibility */
.tech-card .icon-wrapper {
    color: var(--primary-color) !important;
}
.tech-card:hover .icon-wrapper {
    color: #ffffff !important;
}
.tech-card:hover .icon-wrapper svg {
    fill: #ffffff !important;
}


/* --- Aurora Specific Design --- */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
    animation: aurora-float 20s ease-in-out infinite alternate;
}
body::before {
    top: -200px;
    left: -200px;
    background: var(--primary-color);
}
body::after {
    bottom: -200px;
    right: -200px;
    background: var(--secondary-color);
    animation-delay: -10s;
}
@keyframes aurora-float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 50px) scale(1.2); }
    100% { transform: translate(-50px, 100px) scale(0.9); }
}
/* Ensure cards are opaque to read text over intense colors */
.card, .tech-card, .custom-form, .p-4.bg-white {
    background-color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    border: none !important;
}
html[data-theme="dark"] .card, 
html[data-theme="dark"] .tech-card, 
html[data-theme="dark"] .custom-form, 
html[data-theme="dark"] .p-4.bg-white {
    background-color: #1e2227 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
}

/* Allow aurora effect to show through sections in dark mode */
html[data-theme="dark"] section.bg-light,
html[data-theme="dark"] section.bg-white {
    background-color: transparent !important;
}

/* --- Premium Floating Navbar Overrides --- */
/* Default state (At top): Full width, transparent, no borders */
.navbar.fixed-top {   padding-top: 0 !important;   padding-bottom: 0 !important;
    height: 88px;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    padding-left: 40px !important;
    padding-right: 40px !important;
    background-color: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    border-bottom: none;
}


/* Scrolled state: Floating pill */
.navbar.fixed-top.scrolled {   padding-top: 0 !important;   padding-bottom: 0 !important;
    height: 64px;
    max-width: 1140px;
    margin: 20px auto 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-left: 32px !important;
    padding-right: 32px !important;
}

/* Media queries for the floated (scrolled) pill */
@media (max-width: 1199px) { .navbar.fixed-top.scrolled {   padding-top: 0 !important;padding-bottom: 0 !important; max-width: 960px; } }
@media (max-width: 991px) { 
    .navbar.fixed-top.scrolled {    padding-top: 0 !important;  padding-bottom: 0 !important; 
        max-width: 720px; 
        margin: 10px auto 0; 
        padding-left: 20px !important; 
        padding-right: 20px !important; 
        border-radius: 16px; 
    } 
}
@media (max-width: 767px) { .navbar.fixed-top.scrolled {  padding-top: 0 !important;    padding-bottom: 0 !important; max-width: 540px; } }
@media (max-width: 575px) { 
    .navbar.fixed-top.scrolled {   padding-top: 0 !important;    padding-bottom: 0 !important; 
        max-width: calc(100% - 30px); 
        margin-left: 15px; 
        margin-right: 15px; 
    } 
}

/* Dark Mode Overrides */
html[data-theme="dark"] .navbar.fixed-top {    padding-top: 0 !important;   padding-bottom: 0 !important;
    background-color: transparent !important; /* Ensure transparent at top in dark mode too */
    box-shadow: none;
}

html[data-theme="dark"] .navbar.fixed-top.scrolled {   padding-top: 0 !important;    padding-bottom: 0 !important;
    background-color: rgba(26, 30, 33, 0.95) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    padding-left: 8px; /* Slightly increase left margin */
}

/* Menu Spacing */
.navbar-nav {
    gap: 36px;
    align-items: center;
}
@media (max-width: 991px) {
    .navbar-nav {
        gap: 15px;
        padding-top: 15px;
        padding-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
}

/* Nav Links - Underline Animation */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}
.nav-link {
    position: relative;
    font-weight: 500 !important; /* Reduced boldness */
    transition: all 0.3s ease !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: inline-block;
}

.nav-link.active {
    font-weight: 600 !important; /* Only active page is bolder */
}

.nav-link:not(.btn)::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0); /* Start scaled down for sliding effect */
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:not(.btn):hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link:not(.btn):hover::after, .nav-link:not(.btn).active::after {
    transform: scaleX(1); /* Slide in from left */
}

/* CTA Button - Emerald Green, 44px height, 12px radius */
.nav-link.btn-primary {
    background: #10B981 !important; /* Emerald green */
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    padding: 0 24px !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    border: none !important;
    transition: all 0.25s ease !important; /* 250ms transition */
    transform: translateY(0); /* Initial state */
}

.nav-link.btn-primary:hover {
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4) !important; /* Soft shadow */
    transform: translateY(-2px) !important; /* Lift by 2px */
    background: #34d399 !important; /* Slightly brighter */
}

/* Theme Toggle - Modern Sliding Switch */
.theme-switcher {
    position: relative;
    background-color: #f1f3f5 !important;
    border: none !important;
    padding: 3px !important; /* Reduced horizontal padding */
    border-radius: 30px !important;
    height: 34px; /* Smaller height */
}

html[data-theme="dark"] .theme-switcher {
    background-color: #2b3035 !important;
}

.theme-switcher button {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    width: 28px; /* Smaller icons / closer together */
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    background: transparent !important;
}

.theme-switcher button.btn-primary {
    color: var(--primary-color) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .theme-switcher button.btn-primary {
    color: #fff !important;
}

/* Sliding background element */
.theme-switcher-bg {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Reduced shadow intensity */
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

html[data-theme="dark"] .theme-switcher-bg {
    background-color: #495057;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.theme-switcher[data-active="light"] .theme-switcher-bg { transform: translateX(0); }
.theme-switcher[data-active="dark"] .theme-switcher-bg { transform: translateX(28px); }
.theme-switcher[data-active="auto"] .theme-switcher-bg { transform: translateX(56px); }

/* Hero width adjustment */
@media (min-width: 992px) {
    .hero-overlay {
        max-width: 65%;
    }
}


/* --- Modern Two-Column Hero --- */
.modern-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding-top: 120px;
    padding-bottom: 80px;
}
html[data-theme="dark"] .modern-hero {
    background-color: #1a1a1a;
}
.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 90%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
    animation: slowGlow 8s ease-in-out infinite alternate;
}
html[data-theme="dark"] .hero-bg-glow {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(15,23,42,0) 70%);
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#10B981 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.hero-heading {
    font-size: clamp(48px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-description {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-trust {
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-badge {
    animation: fadeIn 0.8s ease-out forwards;
}

.browser-mockup {
    border: 1px solid rgba(0,0,0,0.08);
    transform: translateY(20px);
    opacity: 0;
    animation: floatUp 1s ease-out 0.3s forwards, subtleFloat 6s ease-in-out infinite alternate 1.3s;
}



html[data-theme="dark"] .browser-mockup {
    border: 1px solid rgba(255,255,255,0.1);
    background-color: #1e293b !important;
}

html[data-theme="dark"] .browser-mockup .browser-header,
html[data-theme="dark"] .browser-mockup .browser-body,
html[data-theme="dark"] .browser-mockup .bg-light,
html[data-theme="dark"] .browser-mockup .bg-white {
    background-color: #1e293b !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .browser-mockup .text-dark {
    color: #f8fafc !important;
}

.floating-badge {
    opacity: 0;
    animation: floatIn 0.8s ease-out forwards, floatUpDown 6s ease-in-out infinite alternate;
}

html[data-theme="dark"] .floating-badge {
    background-color: #1e293b !important;
    border-color: rgba(255,255,255,0.1) !important;
}

html[data-theme="dark"] .floating-badge .text-dark {
    color: #f8fafc !important;
}

/* .badge-seo {
    top: 15%;
    left: -20px;
    animation-delay: 0.8s, 1.6s; 
    z-index: 2;
} */
.badge-seo {
    top: 15%;
    left: -35px;
    animation-delay: 0.8s, 1.6s; /* Wait for 0.8s + 0.8s floatIn duration */
    z-index: 2;
}

.badge-perf {
    bottom: 20%;
    right: -20px;
    animation-delay: 1.0s, 1.8s; /* Wait for 1.0s + 0.8s floatIn duration */
    z-index: 2;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes floatUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes subtleFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

@keyframes floatIn {
    from { opacity: 0; transform: scale(0.8) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes floatUpDown {
    from { transform: translateY(0px); }
    to { transform: translateY(-15px); }
}

@keyframes slowGlow {
    from { opacity: 0.8; transform: scale(1); }
    to { opacity: 1; transform: scale(1.05); }
}


/* Smoother Mockup Content Animation */
/* .mockup-content {
    animation: scrollMockup 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
} */
.mockup-content {
    animation: none;
    transform: none;
}

.mockup-content .bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup-content .bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05) !important;
}

/* @keyframes scrollMockup {
    0% { transform: translateY(0); }
    10% { transform: translateY(0); }
    30% { transform: translateY(-40px); }
    50% { transform: translateY(-40px); }
    70% { transform: translateY(-80px); }
    85% { transform: translateY(-80px); }
    100% { transform: translateY(0); }
} */

/* Staggered load in for inner elements */
.mockup-content > div {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}
.mockup-content > div:nth-child(1) { animation-delay: 1.2s; }
.mockup-content > .row > div:nth-child(1) .bg-white { opacity: 0; animation: fadeInUp 0.5s ease-out 1.4s forwards; }
.mockup-content > .row > div:nth-child(2) .bg-white { opacity: 0; animation: fadeInUp 0.5s ease-out 1.5s forwards; }
.mockup-content > .row > div:nth-child(3) .bg-white { opacity: 0; animation: fadeInUp 0.5s ease-out 1.6s forwards; }
.mockup-content > .row > div:nth-child(4) .bg-white { opacity: 0; animation: fadeInUp 0.5s ease-out 1.7s forwards; }

/* Animated Mouse Cursor */
.animated-cursor {
    top: 60%;
    left: 80%;
    animation: moveCursor 8s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

@keyframes moveCursor {
    0% { top: 70%; left: 80%; }
    20% { top: 20%; left: 40%; }
    25% { top: 20%; left: 40%; transform: scale(0.9); }
    30% { top: 20%; left: 40%; transform: scale(1); }
    50% { top: 50%; left: 30%; }
    55% { top: 50%; left: 30%; transform: scale(0.9); }
    60% { top: 50%; left: 30%; transform: scale(1); }
    80% { top: 70%; left: 70%; }
    100% { top: 70%; left: 80%; }
}

/* Extra Color Glows for Hero */
.modern-hero::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
    animation: slowGlow 6s ease-in-out infinite alternate-reverse;
}
html[data-theme="dark"] .modern-hero::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(15,23,42,0) 70%);
}

/* Hero Layout Refinements */
.modern-hero {
    min-height: auto !important;
    padding-top: 140px !important;
    padding-bottom: 80px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 55%, #edf8f4 100%);
    align-items: flex-start !important;
}

html[data-theme="dark"] .modern-hero {
    background: linear-gradient(180deg, #1e293b 0%, #152233 55%, #1a1a1a 100%);
}

@media (min-width: 992px) {
    .modern-hero .col-lg-5 {
        width: 48% !important;
    }
    .modern-hero .col-lg-7 {
        width: 52% !important;
    }
    .browser-mockup {
        transform: scale(1.08) translateY(-25px);
        transform-origin: top center;
    }
}

/* Custom Emerald Buttons */
.btn-emerald {
    background-color: #10B981;
    color: #ffffff;
    transition: all 0.3s ease;
}
.btn-emerald:hover {
    background-color: #059669; /* Slightly darker emerald */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-outline-emerald {
    /* color: #10B981; */
    background:linear-gradient(135deg, #10B981, #047857);; 
    color: white;
    /* border-color: #10B981; */
    border: none;
    /* background-color: transparent; */
    
    transition: all 0.3s ease;
}
.btn-outline-emerald:hover {
    background-color: #10B981;
    color: #ffffff !important;
    border-color: #10B981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

html[data-theme="dark"] .btn-outline-emerald:hover {
    color: #ffffff !important;
}

/* Bento Card Hover Animations & Layouts */
.bento-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid #10B981 !important;
}

.bento-card-small {
    min-height: 260px;
}

/* Make primary card stand out more */
.bento-card-primary {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Dark Theme overrides */
html[data-theme="dark"] .bento-section {
    background-color: #1a1a1a !important;
}
html[data-theme="dark"] .bento-card {
    background-color: #1e293b !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
    border-top: 4px solid #10B981 !important;
}
html[data-theme="dark"] .bento-card-primary {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .bento-card h3,
html[data-theme="dark"] .bento-card h4,
html[data-theme="dark"] .bento-card h5 {
    color: #f8fafc !important;
}
html[data-theme="dark"] .bento-card p,
html[data-theme="dark"] .bento-card ul {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .bento-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Split Layout Feature List Hover */
.feature-list-item {
    transition: transform 0.2s ease;
    cursor: default;
}
.feature-list-item:hover {
    transform: translateX(8px);
}

/* Dashboard Mockup Enhancements */
.dashboard-mockup {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.dashboard-mockup:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}


html[data-theme="dark"] .dashboard-mockup {
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
}

/* Option B Premium List */
.premium-list:hover .premium-list-item {
    opacity: 0.4;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-list .premium-list-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}
.premium-list .premium-list-item:hover {
    opacity: 1;
    transform: scale(1.02);
}
.premium-list .premium-list-item:hover h3 {
    color: #10B981 !important;
}

html[data-theme="dark"] .option-b-section {
    background-color: #1a1a1a !important;
}
html[data-theme="dark"] .premium-list-item h3 {
    color: #f8fafc !important;
}
html[data-theme="dark"] .premium-list:hover .premium-list-item:hover h3 {
    color: #10B981 !important;
}

/* Option C Timeline Hover Effects */
.timeline-item {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}
.timeline-item:hover .timeline-icon {
    background-color: #10B981 !important;
    color: #ffffff !important;
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4) !important;
}
.timeline-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline-left:hover { transform: translateX(-10px); }
.timeline-right:hover { transform: translateX(10px); }

/* Responsive adjustments for mobile (stacking it nicely) */
@media (max-width: 767.98px) {
    .timeline-line {
        start: 24px !important;
        transform: none !important;
    }
    .timeline-item .col-6 {
        width: 100% !important;
    }
    .timeline-item {
        margin-bottom: 2rem !important;
    }
    .timeline-item .position-absolute.start-50 {
        start: 0 !important;
        transform: translateY(-50%) !important;
    }
    .timeline-left .col-6.text-end {
        text-align: start !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
    }
    .timeline-right .col-6.text-start {
        padding-left: 60px !important;
    }
    .timeline-left .col-6:last-child { display: none; }
    .timeline-right .col-6:first-child { display: none; }
    
    .timeline-left:hover, .timeline-right:hover {
        transform: translateX(10px);
    }
}

html[data-theme="dark"] .option-c-section {
    background-color: #1a1a1a !important;
}
html[data-theme="dark"] .timeline-icon {
    background-color: #1e293b !important;
}
html[data-theme="dark"] .timeline-item h4 {
    color: #f8fafc !important;
}

/* Refined Option A Animations */

/* Staggered Fade In */
.fade-in-stagger .stagger-item {
    opacity: 0;
    transform: translateY(20px);
}
.fade-in-stagger.visible .stagger-item {
    animation: staggerFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.fade-in-stagger .stagger-item:nth-child(1) { animation-delay: 0.1s; }
.fade-in-stagger .stagger-item:nth-child(2) { animation-delay: 0.3s; }
.fade-in-stagger .stagger-item:nth-child(3) { animation-delay: 0.5s; }
.fade-in-stagger .stagger-item:nth-child(4) { animation-delay: 0.7s; }
.fade-in-stagger .stagger-item:nth-child(5) { animation-delay: 0.9s; }
.fade-in-stagger .stagger-item:nth-child(6) { animation-delay: 1.1s; }
.fade-in-stagger .stagger-item:nth-child(7) { animation-delay: 1.3s; }
.fade-in-stagger .stagger-item:nth-child(8) { animation-delay: 1.5s; }
.fade-in-stagger .stagger-item:nth-child(9) { animation-delay: 1.7s; }
.fade-in-stagger .stagger-item:nth-child(10) { animation-delay: 1.9s; }


@keyframes staggerFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Floating Badges Loop */
@keyframes floatBadge1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes floatBadge2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes floatBadge3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.float-anim-1 { animation: floatBadge1 4s ease-in-out infinite; }
.float-anim-2 { animation: floatBadge2 5s ease-in-out infinite 1s; }
.float-anim-3 { animation: floatBadge3 4.5s ease-in-out infinite 0.5s; }

/* Dark Mode Overrides */
html[data-theme="dark"] .website-mockup {
    background-color: #1a1a1a !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5) !important;
}
html[data-theme="dark"] .website-mockup .bg-light {
    background-color: #1e293b !important;
}
html[data-theme="dark"] .website-mockup .bg-white {
    background-color: #1a1a1a !important;
}
html[data-theme="dark"] .float-anim-1,
html[data-theme="dark"] .float-anim-2,
html[data-theme="dark"] .float-anim-3 {
    background-color: #1e293b !important;
    border-color: rgba(255,255,255,0.1) !important;
}

/* Dark Mode Overrides for Split Features Section Text */
html[data-theme="dark"] .split-features-section h2.text-dark,
html[data-theme="dark"] .split-features-section h5.text-dark {
    color: #f8fafc !important;
}

html[data-theme="dark"] .split-features-section p.text-muted {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .split-features-section hr.border-light {
    border-color: rgba(255,255,255,0.1) !important;
}

/* Dark Mode Overrides for Floating Badges */
html[data-theme="dark"] .split-features-section .col-lg-7 > .float-anim-1,
html[data-theme="dark"] .split-features-section .col-lg-7 > .float-anim-2,
html[data-theme="dark"] .split-features-section .col-lg-7 > .float-anim-3 {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .split-features-section .col-lg-7 > .float-anim-1 .text-dark,
html[data-theme="dark"] .split-features-section .col-lg-7 > .float-anim-2 .text-dark,
html[data-theme="dark"] .split-features-section .col-lg-7 > .float-anim-3 .text-dark {
    color: #f8fafc !important;
}

html[data-theme="dark"] .split-features-section .col-lg-7 > .float-anim-1 .text-muted,
html[data-theme="dark"] .split-features-section .col-lg-7 > .float-anim-2 .text-muted,
html[data-theme="dark"] .split-features-section .col-lg-7 > .float-anim-3 .text-muted {
    color: #94a3b8 !important;
}



/* Dark Mode Overrides for Browser Mockup URL Bar */
html[data-theme="dark"] .split-features-section .col-lg-7 .bg-light {
    color: #1a1a1a !important;
}

/* Lock Website Mockup Colors (Prevent Dark Mode Inversion inside the slides) */
html[data-theme="dark"] .split-features-section .col-lg-7 .bg-white {
    background-color: #ffffff !important;
}

html[data-theme="dark"] .split-features-section .col-lg-7 .bg-light {
    background-color: #f8fafc !important;
}

html[data-theme="dark"] .split-features-section .col-lg-7 .bg-dark {
    background-color: #1a1a1a !important;
}

html[data-theme="dark"] .split-features-section .col-lg-7 .text-dark {
    color: #1a1a1a !important;
}

html[data-theme="dark"] .split-features-section .col-lg-7 .text-muted {
    color: #64748b !important;
}

html[data-theme="dark"] .split-features-section .col-lg-7 .text-white {
    color: #ffffff !important;
}

html[data-theme="dark"] .split-features-section .col-lg-7 .border,
html[data-theme="dark"] .split-features-section .col-lg-7 .border-bottom,
html[data-theme="dark"] .split-features-section .col-lg-7 .border-start {
    border-color: rgba(0,0,0,0.1) !important;
}

/* Dark Mode Overrides for About Section */
html[data-theme="dark"] .about-section {
    background-color: #111827 !important;
}

html[data-theme="dark"] .about-section .text-dark {
    color: #f8fafc !important;
}

html[data-theme="dark"] .about-section .text-muted {
    color: #9ca3af !important;
}

html[data-theme="dark"] .about-section .bg-white {
    background-color: #1f2937 !important; /* Floating badge dark background */
}

html[data-theme="dark"] .about-section .border-light {
    border-color: rgba(255,255,255,0.05) !important;
}

/* Dark Mode Overrides for Aurora Glow */
html[data-theme="dark"] .aurora-glow {
    background: radial-gradient(circle, rgba(16,185,129,0.5) 0%, rgba(255,255,255,0) 70%) !important;
    filter: blur(100px) !important;
}

/* Premium Card Hover Interactions */
.card-premium-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06) !important;
}



.card-premium-hover:hover .card-title {
    color: var(--bs-primary) !important;
}

/* Dark mode overrides for card hover */
html[data-theme="dark"] .card-premium-hover:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
}
html[data-theme="dark"] .about-section .card-premium-hover:hover .card-title {
    color: var(--bs-primary) !important;
}

/* Fix Primary Color in About Section to Emerald Green */
.about-section .text-primary {
    color: #10B981 !important;
}

.about-section .bg-primary-subtle {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

/* Fix Premium Card Hover Interactions */




.card-premium-hover:hover .card-title {
    color: #10B981 !important;
}

/* Dark mode overrides for card hover */
html[data-theme="dark"] .about-section .card-premium-hover:hover .card-title {
    color: #10B981 !important;
}






/* Premium Card Hover SVG Swap */
.icon-solid {
    display: none;
}
.card-premium-hover:hover .icon-outline {
    display: none;
}
.card-premium-hover:hover .icon-solid {
    display: block;
    color: #10B981 !important;
}
.card-premium-hover:hover .card-title {
    color: #10B981 !important;
}

/* About Section Polish */
.card-premium-hover {
    border: 1px solid rgba(0,0,0,0.05); /* initial border */
}

.card-premium-hover:hover {
    border-color: rgba(16,185,129,0.3) !important;
}

.card-premium-hover .icon-circle svg {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-premium-hover:hover .icon-circle svg {
    transform: rotate(10deg) scale(1.08);
}

/* CTA Arrow Hover */
.cta-premium:hover .cta-arrow {
    transform: translateX(4px);
}

/* Services Section Polish */
.card-service-premium {
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.card-service-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.08) !important;
    border-color: rgba(16,185,129,0.3) !important;
}

.card-service-premium .icon-circle svg {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-service-premium:hover .icon-circle svg {
    transform: rotate(10deg) scale(1.1);
}

.link-premium-hover:hover .link-arrow {
    transform: translateX(4px);
}

/* WhatsApp Button */
.btn-outline-whatsapp {
    color: #10B981;
    background-color: transparent;
    border: 1.5px solid #10B981;
}

.btn-outline-whatsapp:hover {
    color: #fff;
    background-color: #10B981;
    border-color: #10B981;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 1.5rem;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-square {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-wide {
    grid-column: span 3;
    grid-row: span 1;
}

.bento-item {
    background-color: rgba(0,0,0,0.015) !important;
}

.bento-item:hover {
    background-color: #fff !important;
}

/* Responsive Grid */
@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-large {
        grid-column: span 2;
    }
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-square {
        grid-column: span 1;
    }
    .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large, .bento-tall, .bento-square, .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* SaaS Horizontal Showcase Layout */
.product-showcase-item {
    background-color: transparent;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
    border-radius: 8px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
}

.product-showcase-item:hover {
    background-color: rgba(16,185,129,0.03);
    border-color: transparent !important;
}

.product-showcase-item:hover .icon-circle svg {
    transform: rotate(10deg) scale(1.1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-showcase-item .icon-circle svg {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-showcase-item:hover .link-premium-hover .link-arrow {
    transform: translateX(4px);
}

/* Premium Card Refinements */
.rounded-custom {
    border-radius: 20px !important;
}

.transition-premium {
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-service-custom {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-service-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.card-service-custom:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.card-service-custom:hover .icon-outline {
    display: none;
}
.card-service-custom:hover .icon-solid {
    display: block !important;
}

.link-premium-hover:hover .link-arrow {
    transform: translateX(6px);
}

/* Specific Featured Card tweaks */
.featured-card:hover {
    box-shadow: 0 20px 50px rgba(16,185,129,0.12);
}

/* Process Tracker Refinements */
.process-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
}

@media (max-width: 992px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 40px;
    }
}
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

.process-card {
    border-radius: 16px !important;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.process-step:hover .process-card {
    border-radius: 16px !important;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.2);
}

.process-step:hover .process-icon {
    transform: rotate(8deg) scale(1.1);
}

.process-step .process-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

/* Micro-animations per step on hover */
.process-step:nth-child(1):hover .process-icon { animation: iconBounce 0.5s; }
.process-step:nth-child(2):hover .process-icon { animation: iconSlideIn 0.5s; }
.process-step:nth-child(3):hover .process-icon { animation: iconDraw 0.5s; }
.process-step:nth-child(6):hover .process-icon { animation: rocketLaunch 0.5s forwards; }

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) rotate(8deg); }
    50% { transform: translateY(-8px) rotate(8deg); }
}
@keyframes iconSlideIn {
    0% { transform: translateX(-5px) rotate(8deg); opacity: 0.8; }
    100% { transform: translateX(0) rotate(8deg); opacity: 1; }
}
@keyframes iconDraw {
    0% { transform: rotate(-10deg) scale(1.1); }
    50% { transform: rotate(15deg) scale(1.1); }
    100% { transform: rotate(8deg) scale(1.1); }
}
@keyframes rocketLaunch {
    0% { transform: translateY(0) rotate(8deg); }
    100% { transform: translateY(-12px) rotate(15deg) scale(1.2); }
}

/* Scroll Animation Initial States */
.reveal-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Node Activation */
.process-node.active {
    background-color: #10B981 !important;
    color: #fff !important;
    border-color: #10B981 !important;
    box-shadow: 0 0 15px rgba(16,185,129,0.4);
    transform: scale(1.1);
}

/* Continuous Pulse Animation */
@keyframes pulseTravel {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
.process-pulse {
    animation: pulseTravel 4s linear infinite;
}

/* Premium Process Tracker CSS Updates */

/* Grid Spacing */
.process-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .process-grid { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
}
@media (max-width: 768px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .process-grid { grid-template-columns: 1fr; }
}

/* Base Node (Future) */
.process-node {
    background-color: transparent !important;
    border: 2px solid rgba(0,0,0,0.1) !important;
    color: rgba(0,0,0,0.2) !important;
}

/* Active Node */
.process-node.node-active {
    background-color: #fff !important;
    border-color: #10B981 !important;
    color: #10B981 !important;
    box-shadow: 0 0 0 6px rgba(16,185,129,0.15), 0 0 20px rgba(16,185,129,0.4);
    transform: scale(1.15);
    z-index: 5;
    animation: nodePulse 2s infinite;
}

/* Past Node */
.process-node.node-past {
    background-color: #10B981 !important;
    border-color: #10B981 !important;
    color: #fff !important;
    transform: scale(1);
    box-shadow: none;
}

.process-node.node-past .node-check {
    opacity: 1 !important;
}

@keyframes nodePulse {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Premium Card Shadows & Hover */
.process-card {
    border-radius: 16px !important;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.process-step:hover .process-card {
    border-radius: 16px !important;
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(16,185,129,0.25), 0 5px 15px rgba(16,185,129,0.15) !important;
    border-color: rgba(16,185,129,0.15);
}

/* Icon Animations */
.process-step:hover .process-icon {
    transform: rotate(8deg) scale(1.1);
}
.process-step .process-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Specific Hover Interactions */
.process-step:nth-child(1):hover .process-icon { animation: iconBounce 0.5s; }
.process-step:nth-child(2):hover .process-icon { animation: iconSlideIn 0.5s; }
.process-step:nth-child(3):hover .process-icon { animation: iconDraw 0.5s; }
.process-step:nth-child(6):hover .process-icon { animation: premiumRocketLaunch 0.6s forwards cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes premiumRocketLaunch {
    0% { transform: translateY(0) rotate(8deg); }
    100% { transform: translateY(-6px) rotate(12deg) scale(1.1); }
}

/* Scroll Animation Initial States */
.reveal-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Node pop-in animation */
.process-node {
    background-color: #fff !important;
    border: 2px solid rgba(0,0,0,0.1) !important;
    color: rgba(0,0,0,0.3) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.process-node.node-past {
    background-color: #10B981 !important;
    border-color: #10B981 !important;
    color: #fff !important;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(16,185,129,0.3);
}

.process-node .node-check {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
    transform: scale(0);
}

/* Number transition physics */
.process-node .node-number {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    transform: scale(1);
    opacity: 1;
}

/* On hover: number shrinks and fades, checkmark pops in */
.process-node.node-hover-glow .node-number {
    opacity: 0;
    transform: scale(0);
}
.process-node.node-hover-glow .node-check {
    opacity: 1 !important;
    transform: scale(1);
}

/* Hovering the card illuminates the node */
.process-node.node-hover-glow {
    box-shadow: 0 0 0 6px rgba(16,185,129,0.15), 0 0 20px rgba(16,185,129,0.5) !important;
    transform: scale(1.15);
}

/* Micro-animations per step on hover */
@keyframes premiumRocketLaunch {
    0% { transform: translateY(0) rotate(8deg); }
    100% { transform: translateY(-6px) rotate(12deg) scale(1.1); }
}

/* Base styling for card */
.process-card {
    border-radius: 16px !important;
    border: 1px solid rgba(16,185,129,0.08) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

/* Card hover physics */
.process-step:hover .process-card {
    border-radius: 16px !important;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(16,185,129,0.25), 0 5px 15px rgba(16,185,129,0.15) !important;
    border-color: rgba(16,185,129,0.2) !important;
}

/* Sync icon brightening */
.process-step:hover .process-icon-container {
    background-color: rgba(16,185,129,0.15) !important;
}


/* Dark Mode Fix for Process Section */
.section-process-bg { background-color: transparent !important; }
html[data-theme="dark"] .section-process-bg { background-color: transparent !important; }

/* Ensure all cards in the process grid stretch to perfectly equal height */
.process-step {
    display: flex;
    flex-direction: column;
}

.process-step .process-card {
    border-radius: 16px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* Optional: perfectly center card contents vertically if the card stretches taller than content */
    justify-content: flex-start;
}

/* Technology Stack - Redesign CSS */
.tech-pill {
    background-color: var(--pill-default-bg);
    border: 1px solid rgba(0,0,0,0.05) !important;
}

html[data-theme="dark"] .tech-pill {
    background-color: var(--pill-default-bg);
    border-color: rgba(255,255,255,0.05) !important;
}
html[data-theme="dark"] .tech-pill:hover {
    background-color: #2b3035 !important;
}

.tech-pill:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Specific Micro-Animations */
.tech-pill:hover .tech-icon-react {
    transform: rotate(180deg);
}

.tech-pill:hover .tech-icon-node {
    filter: drop-shadow(0 0 6px rgba(104, 160, 99, 0.6));
    transform: scale(1.1);
}

.tech-pill:hover .tech-icon-postgres {
    transform: translateY(-4px);
}

.tech-pill:hover .tech-icon-scale {
    transform: scale(1.15);
}

.tech-card {
    border: 1px solid rgba(16,185,129,0.08) !important;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.04), 0 5px 15px rgba(0,0,0,0.02) !important;
    border-color: rgba(16,185,129,0.2) !important;
}

html[data-theme="dark"] .tech-card {
    background-color: #1e2227 !important;
    border-color: rgba(255,255,255,0.05) !important;
}

html[data-theme="dark"] .tech-card:hover {
    border-color: rgba(16,185,129,0.3) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), 0 5px 15px rgba(0,0,0,0.2) !important;
}



html[data-theme="dark"] .tech-card .badge {
    background-color: #2b3035 !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.1) !important;
}

/* Tech Polish Animations & Hover Physics */
.tech-pill {
    position: relative;
    overflow: hidden;
    border-left: 2px solid transparent !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.tech-pill:hover {
    background-color: #fff !important;
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: rgba(16,185,129,0.1) !important;
    border-left: 4px solid #10B981 !important;
}

html[data-theme="dark"] .tech-pill:hover {
    background-color: #2b3035 !important;
    border-left: 4px solid #10B981 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tech-card:hover .tech-card-title {
    color: #10B981 !important;
}

.tech-card:hover .icon-square {
    box-shadow: 0 0 15px rgba(16,185,129,0.4);
    background-color: #10B981 !important;
    color: #fff !important;
}

.tech-card:hover .icon-square i {
    color: #fff !important;
}

/* Scroll Animations */
.tech-reveal {
    opacity: 0; /* Let keyframes handle transform and transition */
}

@keyframes cardEntranceBounce {
    0% { opacity: 0; transform: translateY(40px); }
    60% { opacity: 1; transform: translateY(-12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.tech-reveal.visible {
    animation: cardEntranceBounce 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tech-delay-1 { transition-delay: 0.08s; animation-delay: 0.08s; }
.tech-delay-2 { transition-delay: 0.16s; animation-delay: 0.16s; }
.tech-delay-3 { transition-delay: 0.24s; animation-delay: 0.24s; }
.tech-delay-4 { transition-delay: 0.32s; animation-delay: 0.32s; }
.tech-delay-5 { transition-delay: 0.40s; animation-delay: 0.40s; }
.tech-delay-6 { transition-delay: 0.48s; animation-delay: 0.48s; }

.tech-pill-anim {
    opacity: 0;
    transform: translateX(-10px);
    transition: padding 0.4s ease, min-height 0.4s ease, max-width 0.4s ease, margin 0.4s ease, border-radius 0.4s ease, box-shadow 0.4s ease;
}
.tech-reveal.visible .tech-pill-anim {
    opacity: 1;
    transform: translateX(0);
}

/* Dark Mode Text Visibility Fixes for Tech Stack */
html[data-theme="dark"] .tech-card .tech-card-title {
    color: #ffffff !important;
}

html[data-theme="dark"] .tech-pill span {
    color: #ffffff !important;
}

html[data-theme="dark"] .tech-card p.text-muted {
    color: #aeb3b8 !important;
}

/* Invert black monochrome logos in Dark Mode */
html[data-theme="dark"] .devicon-nextjs-plain,
html[data-theme="dark"] .devicon-flask-original,
html[data-theme="dark"] .devicon-express-original {
    filter: invert(1) brightness(2) !important;
}

/* Add white circle background for specific logos in Dark Mode */
html[data-theme="dark"] .devicon-vercel-original,
html[data-theme="dark"] .devicon-django-plain {
    background-color: #ffffff !important;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #ffffff; /* Creates a clean white boundary */
    margin: 3px; /* Compensate for the box shadow so it doesn't overlap text */
}

/* Wave Bounce Animation for Pills on Card Hover */

:root {
    --pill-default-bg: #f8f9fa;
    --pill-hover-bg: #ffffff;
    --pill-hover-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

html[data-theme="dark"] {
    --pill-default-bg: #212529;
    --pill-hover-bg: #2b3035;
    --pill-hover-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

@keyframes pillWave {
    0%, 100% { 
        transform: translateX(0) translateY(0);
        border-left-color: transparent;
        border-left-width: 2px;
        box-shadow: none;
    }
    40% { 
        transform: translateX(4px) translateY(-2px);
        border-left-color: #10B981;
        border-left-width: 4px;
        box-shadow: var(--pill-hover-shadow);
        background-color: var(--pill-hover-bg);
    }
}


/* Apply animation when the card is hovered */
.tech-card:hover .tech-pill {
    animation: pillWave 1.2s ease-in-out;
}

/* Because the pills already have inline animation-delay styles (e.g. 0.1s, 0.2s), 
   the wave effect will automatically stagger perfectly! */

/* Light Emerald Green background for Tech Cards in Light Mode */
html:not([data-theme="dark"]) .tech-card {
    background-color: #ecfdf5 !important; /* Very subtle premium emerald tint */
    border: 1px solid rgba(16, 185, 129, 0.1) !important;
}

/* Tech Card Enhancements */
.tech-card-frontend { border-left: 3px solid #10B981 !important; }
.tech-card-backend { border-left: 3px solid #3B82F6 !important; }
.tech-card-database { border-left: 3px solid #8B5CF6 !important; }
.tech-card-languages { border-left: 3px solid #F59E0B !important; }
.tech-card-frameworks { border-left: 3px solid #EC4899 !important; }
.tech-card-hosting { border-left: 3px solid #14B8A6 !important; }

.tech-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease !important;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

html[data-theme="dark"] .tech-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
}

.icon-square i {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tech-card:hover .icon-square i {
    transform: rotate(5deg) scale(1.1);
}

/* Hover Checkmark for Pills */
.tech-pill {
    position: relative;
    padding-right: 32px !important; /* Make room for the checkmark */
}
.tech-pill::after {
    content: "✓";
    position: absolute;
    right: 12px;
    opacity: 0;
    color: #10B981;
    font-weight: 900;
    font-size: 14px;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tech-pill:hover::after {
    opacity: 1;
    transform: translateX(0);
}
/* Ensure keyframe animation also shows the checkmark! */
@keyframes pillWaveAfter {
    0%, 100% {
        opacity: 0;
        transform: translateX(-10px);
    }
    40% {
        opacity: 1;
        transform: translateX(0);
    }
}
.tech-card:hover .tech-pill::after {
    animation: pillWaveAfter 1.2s ease-in-out;
}

/* Specific Logo Scroll Animations */
@keyframes scrollRotate {
    0% { transform: rotate(-180deg) scale(0.5); opacity: 0; }
    100% { transform: rotate(0deg) scale(1); opacity: 1; }
}
@keyframes scrollSlide {
    0% { transform: translateX(-20px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes scrollPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes scrollBounce {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.visible .scroll-anim-rotate { animation: scrollRotate 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.visible .scroll-anim-slide { animation: scrollSlide 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.visible .scroll-anim-pulse { animation: scrollPulse 0.8s ease forwards; }
.visible .scroll-anim-bounce { animation: scrollBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* FAQ Masterpiece Styles */
.faq-card {
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0,0,0,0.03) !important;
}

.faq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06) !important;
}

/* Base button styles */
.faq-btn {
    background-color: transparent !important;
    color: #212529 !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

/* Hover effects for button */
.faq-card:hover .faq-btn {
    color: #10B981 !important;
}

/* Accordion Open State */
.faq-btn:not(.collapsed) {
    background-color: #f8fbfa !important; /* Very subtle emerald tint */
    color: #10B981 !important;
    box-shadow: none !important;
}
.faq-btn:not(.collapsed)::after {
    filter: invert(53%) sepia(87%) saturate(415%) hue-rotate(113deg) brightness(97%) contrast(93%); /* Make default SVG chevron green */
}

/* Hover makes arrow green too */
.faq-card:hover .faq-btn::after {
    filter: invert(53%) sepia(87%) saturate(415%) hue-rotate(113deg) brightness(97%) contrast(93%);
}

.faq-btn:focus {
    box-shadow: none !important;
}

/* Timeline Custom Styles inside FAQ */
.timeline-simple {
    position: relative;
}

/* Dark Mode Overrides for FAQ */
html[data-theme="dark"] .faq-card {
    background-color: #1a1d21 !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}
html[data-theme="dark"] .faq-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.4) !important;
}
html[data-theme="dark"] .faq-btn {
    color: #e9ecef !important;
}
html[data-theme="dark"] .faq-btn:not(.collapsed) {
    background-color: rgba(16,185,129,0.05) !important;
}
html[data-theme="dark"] .faq-btn.collapsed::after {
    filter: invert(1); /* Make chevron white when closed */
}
html[data-theme="dark"] .faq-card:hover .faq-btn.collapsed::after {
    filter: invert(53%) sepia(87%) saturate(415%) hue-rotate(113deg) brightness(97%) contrast(93%); /* Hover green */
}
html[data-theme="dark"] .badge.bg-white {
    background-color: #212529 !important;
    color: #e9ecef !important;
    border-color: rgba(255,255,255,0.1) !important;
}

/* Dark Mode Fix for btn-outline-dark */
html[data-theme="dark"] .btn-outline-dark {
    color: #f8f9fa !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

html[data-theme="dark"] .btn-outline-dark:hover {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-color: #f8f9fa !important;
}

html[data-theme="dark"] .btn-dark {
    background-color: #343a40 !important;
    border-color: #343a40 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .btn-dark:hover {
    background-color: #495057 !important;
    border-color: #495057 !important;
}

/* Bulletproof CTA Button */
.btn-cta-primary {
    background-color: #ffffff !important;
    color: #10B981 !important; /* Brand Emerald Green */
    border: none !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}
.btn-cta-primary:hover {
    background-color: #f1f5f9 !important;
    color: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
}
html[data-theme="dark"] .btn-cta-primary {
    background-color: #ffffff !important;
    color: #10B981 !important;
}

/* About Hero Styles */
.about-hero-bg {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 15%, #bbf7d0 55%, #ffffff 100%);
    position: relative;
    z-index: 1;
}
.about-hero-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(16, 185, 129, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: -1;
    opacity: 0.7;
}

html[data-theme="dark"] .about-hero-bg {
    background: linear-gradient(135deg, #121416 0%, #0d3a24 50%, #121416 100%);
}
html[data-theme="dark"] .about-hero-bg::before {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.browser-frame-about {
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.browser-header {
    height: 36px;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

html[data-theme="dark"] .browser-frame-about {
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
html[data-theme="dark"] .browser-header {
    background-color: #1a1d21;
    border-bottom-color: rgba(255,255,255,0.05);
}

.floating-badge-about {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

html[data-theme="dark"] .floating-badge-about {
    background: rgba(30, 34, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-badge-about:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Floating Animations */
@keyframes float1 {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
@keyframes float2 {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}
@keyframes float3 {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.float-anim-1 { animation: float1 6s ease-in-out infinite; }
.float-anim-2 { animation: float2 7s ease-in-out infinite 1s; }
.float-anim-3 { animation: float3 5s ease-in-out infinite 2s; }

/* Ensure the navbar can be forced white */
.navbar.fixed-top.bg-white {
    background-color: #ffffff !important;
}
html[data-theme="dark"] .navbar.fixed-top.bg-white {
    background-color: #121416 !important; 
    border-bottom-color: rgba(255,255,255,0.1) !important;
}

/* Dark mode text-dark override globally */
html[data-theme="dark"] .text-dark {
    color: #f8f9fa !important;
}

/* =========================================
   Our Story Narrative Timeline
========================================= */
.story-timeline-track {
    top: 20px; /* Align with middle of the 40px bullet */
}

@media (max-width: 767.98px) {
    .story-timeline-track {
        display: none; /* Hide horizontal line on mobile since items stack vertically */
    }
}

.st-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.st-fade-in-up.st-active {
    opacity: 1;
    transform: translateY(0);
}

.story-node {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.story-node.st-active {
    opacity: 1;
    transform: translateY(0);
}

/* Bullet Active State (Fills with primary color when active) */
.story-node.st-active .story-node-bullet {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    transform: scale(1.1);
}
.story-node.st-active .story-node-bullet span {
    color: #fff !important;
}

/* Dark Mode Overrides */
html[data-theme="dark"] .story-timeline-track {
    border-color: rgba(255,255,255,0.1) !important;
}
html[data-theme="dark"] .story-node-bullet {
    background-color: #1a1d21 !important;
    border-color: #10B981 !important;
}
html[data-theme="dark"] .story-node.st-active .story-node-bullet {
    background-color: #10B981 !important;
}

/* =========================================
   Our Story Vertical Progression
========================================= */
.vertical-story-line {
    width: 2px;
}

.vs-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.vs-fade-in.st-active {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode Overrides for Vertical Story */
html[data-theme="dark"] .vertical-story-node {
    background-color: #1a1d21 !important;
    border-color: rgba(255,255,255,0.05) !important;
}
html[data-theme="dark"] .vertical-story-node > div.bg-primary {
    border-color: #1a1d21 !important;
}
html[data-theme="dark"] #our-story.bg-white {
    background-color: #051a11 !important;
}

/* =========================================
   Alternating Vertical Timeline (Our Story)
========================================= */

/* The drawing line */
.timeline-line {
    width: 2px;
}
.timeline-active .timeline-line {
    height: 100% !important;
}

/* Base card styles */
.timeline-card {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-card-left .timeline-card {
    transform: translateX(-30px);
}
.timeline-card-right .timeline-card {
    transform: translateX(30px);
}

/* Active card reveals */
.timeline-active .timeline-row:nth-child(2) .timeline-card { transition-delay: 0.4s; transform: translateX(0); opacity: 1; }
.timeline-active .timeline-row:nth-child(3) .timeline-card { transition-delay: 0.8s; transform: translateX(0); opacity: 1; }
.timeline-active .timeline-row:nth-child(4) .timeline-card { transition-delay: 1.3s; transform: translateX(0); opacity: 1; }
.timeline-active .timeline-row:nth-child(5) .timeline-card { transition-delay: 1.8s; transform: translateX(0); opacity: 1; }

/* Dot reveals (Desktop) */
.timeline-active .timeline-row:nth-child(2) .timeline-dot { transition-delay: 0.4s; transform: translate(-50%, -50%) scale(1) !important; opacity: 1 !important; }
.timeline-active .timeline-row:nth-child(3) .timeline-dot { transition-delay: 0.8s; transform: translate(-50%, -50%) scale(1) !important; opacity: 1 !important; }
.timeline-active .timeline-row:nth-child(4) .timeline-dot { transition-delay: 1.3s; transform: translate(-50%, -50%) scale(1) !important; opacity: 1 !important; }
.timeline-active .timeline-row:nth-child(5) .timeline-dot { transition-delay: 1.8s; transform: translate(-50%, -50%) scale(1) !important; opacity: 1 !important; }

/* Mobile logic */
@media (max-width: 767.98px) {
    .timeline-line {
        left: 20px !important;
        transform: none !important;
    }
    .timeline-card-left, .timeline-card-right {
        margin-left: 40px;
        text-align: left !important;
    }
    .timeline-card-left .timeline-card, .timeline-card-right .timeline-card {
        transform: translateY(20px); /* Vertical slide on mobile instead of horizontal */
    }
    .timeline-active .timeline-row:nth-child(2) .timeline-card,
    .timeline-active .timeline-row:nth-child(3) .timeline-card,
    .timeline-active .timeline-row:nth-child(4) .timeline-card,
    .timeline-active .timeline-row:nth-child(5) .timeline-card {
        transform: translateY(0);
    }
    /* Dot reveals (Mobile) */
    .timeline-active .timeline-row:nth-child(2) .timeline-dot-mobile { transition-delay: 0.4s; transform: scale(1) !important; opacity: 1 !important; transition: all 0.4s ease; }
    .timeline-active .timeline-row:nth-child(3) .timeline-dot-mobile { transition-delay: 0.8s; transform: scale(1) !important; opacity: 1 !important; transition: all 0.4s ease; }
    .timeline-active .timeline-row:nth-child(4) .timeline-dot-mobile { transition-delay: 1.3s; transform: scale(1) !important; opacity: 1 !important; transition: all 0.4s ease; }
    .timeline-active .timeline-row:nth-child(5) .timeline-dot-mobile { transition-delay: 1.8s; transform: scale(1) !important; opacity: 1 !important; transition: all 0.4s ease; }
}

/* Dark Mode Overrides */
html[data-theme="dark"] .timeline-card {
    background-color: #1a1d21 !important;
    border-color: rgba(255,255,255,0.05) !important;
}
html[data-theme="dark"] .timeline-dot, html[data-theme="dark"] .timeline-dot-mobile {
    background-color: #10B981 !important;
    border-color: #ffffff !important;
}

.timeline-dot { left: 50%; }

/* Emerald glow for timeline cards (Light Mode) */
.timeline-card {
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.4), 0 0 0 2px #10B981 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

/* Remove glow in dark mode, keep dark styling */
html[data-theme="dark"] .timeline-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255,255,255,0.05) !important;
}

/* Force emerald glow over bootstrap shadows */
div.timeline-card.shadow-sm {
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.4) !important;
    border: 1px solid var(--bs-border-color) !important; /* Revert to default light border */
}
html[data-theme="dark"] div.timeline-card.shadow-sm {
    box-shadow: 0 15px 50px rgba(4, 120, 87, 0.4) !important;
    border-color: rgba(255,255,255,0.05) !important;
}

/* Ensure timeline line is visibly green in dark mode */
html[data-theme="dark"] .timeline-line {
    border-color: #10B981 !important;
    opacity: 0.5 !important;
}

/* Mission and Vision Cards */
html[data-theme="dark"] .mission-card {
    background-color: #1a1d21 !important;
    border-color: rgba(255,255,255,0.05) !important;
}
html[data-theme="dark"] .vision-card {
    background-color: #1a1d21 !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.1) !important;
}
html[data-theme="dark"] .vision-card-glow {
    opacity: 0.1 !important;
}
html[data-theme="dark"] #our-mission .text-dark {
    color: #f8fafc !important;
}
html[data-theme="dark"] #our-mission .bg-white.rounded-circle.shadow-sm {
    background-color: #1a1d21 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

/* Animated Convergence Section */
#convergence-section.anim-ready .conv-mission,
#convergence-section.anim-ready .conv-vision,
#convergence-section.anim-ready .conv-hub,
#convergence-section.anim-ready .conv-slogan,
#convergence-section.anim-ready .conv-mobile-arrow {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#convergence-section.anim-ready .svg-path-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

#convergence-section.anim-ready .conv-hub {
    transform: scale(0.9);
}

/* Active State */
#convergence-section.anim-active .conv-mission {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}
#convergence-section.anim-active .conv-vision {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* SVG Line Drawing */
#convergence-section.anim-active .svg-path-line {
    animation: drawPath 1.5s cubic-bezier(0.42, 0, 0.58, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

/* Center Hub */
#convergence-section.anim-active .conv-hub {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: 2.8s;
    animation: pulseHub 1.5s ease-out 2.8s 1;
}

@keyframes pulseHub {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Mobile Arrows */
#convergence-section.anim-active .conv-mobile-arrow {
    opacity: 0.5;
    transform: translateY(0);
    transition-delay: 1.2s;
}

/* Slogan */
#convergence-section.anim-active .conv-slogan {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 3.2s;
}

/* Dark mode hub override */
html[data-theme="dark"] #convergence-section .conv-hub {
    background-color: #1a1d21 !important;
}

/* SVG Dots */
#convergence-section.anim-active .svg-dot {
    opacity: 1;
    transition: opacity 0.2s ease;
    transition-delay: 0.8s; /* match the start of the line draw */
}

/* Loop Reset State (Instantly clears animation state without transitions) */
#convergence-section.loop-reset .conv-mission,
#convergence-section.loop-reset .conv-vision,
#convergence-section.loop-reset .conv-mobile-arrow {
    animation: none !important;
}

@keyframes cardHop {
    0% { transform: translateY(0); }
    30% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

#convergence-section.looping-active .conv-mission,
#convergence-section.looping-active .conv-vision {
    animation: cardHop 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0s;
}

#convergence-section.loop-reset .conv-hub {
    animation: none !important;
    transform: scale(1) !important;
}



#convergence-section.loop-reset .svg-dot {
    transition: none !important;
    opacity: 0 !important;
}

#conv-play-btn:hover {
    opacity: 1 !important;
}

#convergence-section.looping-active .svg-dot {
    transition-delay: 0.1s !important;
}

#convergence-section.looping-active .conv-hub {
    animation: pulseHub 1.5s ease-out 2.0s 1 !important;
}


/* Why Choose Us - Editorial Cards */
.editorial-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-color: rgba(16,185,129,0.2) !important;
    box-shadow: 0 15px 40px rgba(16,185,129,0.4) !important;
}

.editorial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(145deg, rgba(16,185,129,0.03) 0%, rgba(16,185,129,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.editorial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(16,185,129,0.25) !important;
    border-color: rgba(16,185,129,0.4) !important;
}

.editorial-card:hover::before {
    opacity: 1;
}

.editorial-number {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: var(--bs-font-sans-serif);
}

.editorial-card:hover .editorial-number {
    transform: translateY(-8px);
    opacity: 0.6 !important;
    color: var(--bs-primary) !important;
}

.custom-border-md-start {
    border-left: 1px solid rgba(0,0,0,0.06);
}
@media (max-width: 767.98px) {
    .custom-border-md-start {
        border-left: none;
        border-top: 1px solid rgba(0,0,0,0.06);
        padding-top: 2rem;
        margin-top: 1rem;
    }
}

/* Bohr Atomic Model Orbit */
.orbit-pill { pointer-events: auto; z-index: 10;
    position: absolute;
    top: 0; left: 0;
    offset-rotate: 0deg; 
    animation: bohrOrbit 20s linear infinite;
    cursor: pointer;
    z-index: 10;
}
@keyframes bohrOrbit {
    0% { offset-distance: 0%; }
    100% { offset-distance: 100%; }
}
.orbit-counter-rotate {
    transform-origin: center center;
    /* margin-top: -16px; Removed to let offset-anchor center it naturally */
    /* margin-left: -50px; Removed to let offset-anchor center it naturally */
    white-space: nowrap;
}
.orbit-pill:not(.selected):hover .orbit-pill-content {
    background-color: var(--bs-primary) !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 10px 25px rgba(16,185,129,0.3) !important;
}
.orbit-pill:not(.selected):hover .orbit-pill-content i {
    color: white !important;
}

/* Pause the animation of all pills when the section is hovered */
/* removed hover pause */ .orbit-pill-never-hover { pointer-events: auto; z-index: 10;
    animation-play-state: paused;
}

/* Pause nucleus effect */
#concentric-orbit-container:hover #nucleus-box {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(16,185,129,0.1) !important;
}


/* Orbit Panel 2.0 States */
.orbit-pill { pointer-events: auto; z-index: 10;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.orbit-pill.dimmed {
    opacity: 0.75;
}
.orbit-pill-content {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.orbit-pill.selected .orbit-pill-content {
    background-color: #F0FDF4 !important; /* bg-primary-subtle emerald-50 */
    border-color: #10B981 !important;
    box-shadow: 0 0 25px rgba(16,185,129,0.4) !important;
    transform: scale(1.08);
}
.orbit-pill.selected .pill-icon {
    transform: scale(1.1);
}
.orbit-pill.selected .pill-subtitle,
.orbit-pill.hovered .pill-subtitle {
    height: 15px !important;
    opacity: 1 !important;
}
.orbit-pill.hovered:not(.selected) .orbit-pill-content {
    border-color: #10B981 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16,185,129,0.15) !important;
}

/* Orbit Track Highlights */
.svg-orbit-ring {
    transition: all 0.5s ease;
}
.svg-orbit-ring.highlighted {
    stroke: rgba(16,185,129,0.6);
    stroke-width: 2.5px;
}

/* Nucleus Highlight */
#nucleus-box.highlighted {
    box-shadow: 0 0 30px rgba(16,185,129,0.25) !important;
    border-color: #10B981 !important;
}


.orbit-track { pointer-events: none; }


/* Reading Panel Navigation Arrows */
.reading-nav-btn {
    width: 32px;
    height: 32px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
}
.reading-nav-btn:hover {
    background-color: #f8fafc;
    color: var(--bs-primary);
    border-color: #cbd5e1;
}

html[data-theme="dark"] .reading-nav-btn {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .reading-nav-btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}



.orbit-pill { pointer-events: auto !important; z-index: 99 !important; }
.orbit-pill-content { pointer-events: auto !important; position: relative; z-index: 99 !important; }
.orbit-track { pointer-events: none !important; }
.orbit-counter-rotate { pointer-events: auto !important; }

.orbit-pill {
    width: 0px !important;
    height: 0px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Interaction: Expand subtitle on select */
.orbit-pill-content .pill-subtitle {
    height: 0px;
    opacity: 0;
    margin-top: 0 !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.orbit-pill.selected .orbit-pill-content .pill-subtitle {
    height: 18px;
    opacity: 1;
    margin-top: 0.25rem !important;
}

.orbit-pill.selected .orbit-pill-content {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important;
    border-color: #10B981 !important;
    transform: scale(1.05);
}

/* Winding Timeline Styling */
.neon-timeline-container {
    perspective: 1000px;
}
.timeline-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
}
.timeline-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    border-color: rgba(16,185,129,0.3) !important;
}
html[data-theme="dark"] .timeline-card {
    background-color: var(--card-bg-dark) !important;
    border-color: rgba(255,255,255,0.05);
}
html[data-theme="dark"] .timeline-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
    border-color: rgba(16,185,129,0.4) !important;
}
.timeline-marker {
    transition: all 0.3s ease;
}
.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(16,185,129,0.1) !important;
}
.timeline-item:hover .glow-dot {
    box-shadow: 0 0 25px 8px rgba(16,185,129,0.8) !important;
    transform: scale(1.1);
}
/* Mobile adjustments */
@media (max-width: 767.98px) {
    .timeline-content-col {
        padding-left: 3rem !important;
    }
    .timeline-card::before {
        content: '';
        position: absolute;
        top: 20px;
        left: -2rem;
        width: 1.5rem;
        height: 2px;
        background-color: var(--bs-primary);
        opacity: 0.3;
    }
}

.neon-timeline-container .timeline-card { opacity: 1 !important; transform: none !important; }

.theme-section .timeline-card p.text-muted,
.theme-section .timeline-card h4,
.theme-section .timeline-card .step-num {
    -webkit-text-fill-color: initial !important;
}
.theme-section .timeline-card p.text-muted {
    color: #6c757d !important;
    -webkit-text-fill-color: #6c757d !important;
}
html[data-theme="dark"] .theme-section .timeline-card p.text-muted {
    color: #adb5bd !important;
    -webkit-text-fill-color: #adb5bd !important;
}

.vs-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}











.industry-card:hover 



/* Industries We Serve Section */







.industry-card:hover 

.industry-card:hover 

/* Industries We Serve Section */
.industry-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #10B981 !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), 0 5px 15px rgba(16, 185, 129, 0.4) !important;
    cursor: pointer;
    position: relative;
    z-index: 2;
    height: 240px;
    /* Hardware acceleration to prevent wobble */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.industry-card:hover {
    transform: translateY(-8px) translateZ(0);
    z-index: 10;
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.7), 0 10px 25px rgba(16, 185, 129, 0.4) !important;
}

.industry-icon-wrapper {
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: translateY(0);
}

.industry-card:hover .industry-icon-wrapper {
    transform: translateY(-15px);
    opacity: 0;
}

.industry-title {
    transition: transform 0.4s ease;
    transform: translateY(0);
}

.industry-card:hover .industry-title {
    transform: translateY(-40px);
}

.industry-desc {
    position: absolute;
    bottom: 25px;
    left: 20px;
    right: 20px;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(15px);
    pointer-events: none;
}

.industry-card:hover .industry-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Commitment Section Styles */
.commitment-block {
    cursor: default;
    transition: transform 0.4s ease;
}

.commitment-number {
    color: rgba(16, 185, 129, 0.6) !important;
    transition: color 0.4s ease;
}

.commitment-block:hover .commitment-number {
    color: #10B981 !important;
}

.commitment-title {
    transition: transform 0.4s ease, color 0.4s ease;
    transform: translateY(0);
}

.commitment-block:hover .commitment-title {
    transform: translateY(-2px);
}

.commitment-divider {
    height: 2px;
    width: 35px;
    background-color: #e2e8f0;
    transition: background-color 0.4s ease, width 0.4s ease;
}

.commitment-block:hover .commitment-divider {
    background-color: #10B981;
    width: 65px;
}

.hover-lift-subtle:hover {
    transform: translateY(-4px);
}

.commitment-block:hover {
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.15) !important;
}

/* Join Us Section Dark Mode */
html[data-theme="dark"] .join-section {
    background: radial-gradient(circle at top right, rgba(4, 120, 87, 0.4) 0%, transparent 60%),
                radial-gradient(circle at bottom left, rgba(4, 120, 87, 0.2) 0%, transparent 60%) !important;
    background-color: rgba(16, 185, 129, 0.03) !important;
}

html[data-theme="dark"] .join-section .text-dark {
    color: #f8fafc !important;
}

html[data-theme="dark"] .join-section .text-muted {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .join-section .bg-white {
    background-color: rgba(30, 41, 59, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .join-form-card {
    background: linear-gradient(135deg, #10B981, #047857) !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(4, 120, 87, 0.3) !important;
}

html[data-theme="dark"] .join-form-card .text-dark {
    color: #ffffff !important;
}

html[data-theme="dark"] .join-form-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}



html[data-theme="dark"] .join-form-card .bg-light {
    background-color: #000000 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .join-form-card .bg-light::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}





/* Join Us - Specific Elements */
.join-shield-icon {
    color: #10B981 !important;
}
html[data-theme="dark"] .join-shield-icon {
    color: #ffffff !important;
}

html[data-theme="dark"] .join-submit-btn {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .join-submit-btn:hover {
    background-color: #1a1a1a !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

/* Fix icon visibility in dark mode */

html[data-theme="dark"] .join-section .text-primary {
    color: #10B981 !important; /* Keep primary text like asterisks bright emerald */
}
html[data-theme="dark"] .join-section .bi.text-primary,
html[data-theme="dark"] .join-form-card .bi,
html[data-theme="dark"] .join-form-card .join-shield-icon {
    color: #ffffff !important;
}

html[data-theme="dark"] .join-form-card .form-select option {
    background-color: #000000 !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .join-form-card .form-select option:disabled {
    background-color: #000000 !important;
    color: #9ca3af !important; /* Make the disabled placeholder text slightly dim */
}

/* Light Mode Emerald Borders for Form Inputs */
html:not([data-theme="dark"]) .join-form-card .join-focus,
html:not([data-theme="dark"]) .join-form-card .join-focus-group {
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

/* Light Mode Emerald Glow Shadow for Join Form Card */
html:not([data-theme="dark"]) .join-form-card,
html:not([data-theme="dark"]) .join-editorial-card {
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.35) !important;
}

/* FAQ Segmented Switch Toggle */
.faq-toggle-btn {
    color: #64748b !important;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-check:checked + .faq-toggle-btn {
    background-color: #10B981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2) !important;
}

/* Dark Mode Overrides for FAQ Toggle */
html[data-theme="dark"] .faq-toggle-container {
    background-color: rgba(30, 41, 59, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}
html[data-theme="dark"] .faq-toggle-btn {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .btn-check:checked + .faq-toggle-btn {
    background-color: #ffffff !important;
    color: #047857 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Custom Accordion Specifics */
.custom-accordion .accordion-button:not(.collapsed) {
    color: #10B981 !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .custom-accordion .accordion-button {
    color: #f8fafc !important;
}
html[data-theme="dark"] .custom-accordion .accordion-button:not(.collapsed) {
    color: #10B981 !important;
}
html[data-theme="dark"] .custom-accordion .accordion-body {
    color: #94a3b8 !important;
}
html[data-theme="dark"] .custom-accordion .accordion-item {
    border-color: rgba(255,255,255,0.1) !important;
}

/* Fix Accordion Arrow Visibility in Dark Mode */
html[data-theme="dark"] .custom-accordion .accordion-button::after {
    filter: invert(1) brightness(200%);
}

/* Subtle background for active accordion items */
.custom-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(16, 185, 129, 0.04) !important;
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
    border-radius: 0 !important;
}
.custom-accordion .accordion-collapse {
    background-color: rgba(16, 185, 129, 0.04) !important;
}
.custom-accordion .accordion-body {
    padding-top: 0.5rem !important;
    padding-bottom: 2.5rem !important; /* Extra breathing room */
}

/* Dark mode subtle background */
html[data-theme="dark"] .custom-accordion .accordion-button:not(.collapsed),
html[data-theme="dark"] .custom-accordion .accordion-collapse {
    background-color: rgba(16, 185, 129, 0.05) !important;
}

/* Add some horizontal padding to the expanded background to keep the text aligned but give the background space */
.custom-accordion .accordion-button:not(.collapsed) {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
.custom-accordion .accordion-body {
    padding-left: 4rem !important; /* 1.5rem padding + 2.5rem for the number offset */
    padding-right: 1.5rem !important;
}
.custom-accordion .accordion-button {
    transition: all 0.3s ease;
}

/* Force CTA buttons to remain high contrast */
.cta-section .btn.bg-white {
    color: #10B981 !important; 
    border: none !important;
}
.cta-section .btn.bg-white:hover {
    background-color: #f8fafc !important;
}

/* Spray Noise Texture Background */
.spray-noise-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.04; /* Very subtle spray */
    z-index: -2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}
html[data-theme="dark"] .spray-noise-bg {
    opacity: 0.03;
}

/* --- Website System Visualizer --- */
.system-content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.system-content.active {
    opacity: 1;
    transform: translateY(0);
}
.system-node {
    white-space: nowrap;
    z-index: 10;
}
.system-node:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 20px rgba(16,185,129,0.15) !important;
}

/* --- Interactive Showcase --- */
.mock-browser {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}
.mock-browser-header {
    background: #f8f9fa;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e9ecef;
}
.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.wireframe-container {
    background-color: #ffffff;
    height: 420px;
    position: relative;
    overflow: hidden;
}



/* Services Hero Dark Mode Fix */
[data-theme="dark"] #services-hero {
    background: linear-gradient(180deg, #022c22 0%, #064e3b 100%) !important;
}
[data-theme="dark"] #services-hero h1 {
    color: #f8fafc !important;
}
[data-theme="dark"] #services-hero p.text-muted {
    color: #a7f3d0 !important;
}
[data-theme="dark"] #services-hero .bg-pattern-dots {
    opacity: 0.1 !important;
}


/* Utility to hide elements in dark mode */
[data-theme="dark"] .hide-in-dark {
    display: none !important;
}


/* Bottom CTA Dark Mode */
[data-theme="dark"] .cta-wrapper {
    background-color: transparent !important;
}
[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 100%) !important;
    border-top: 1px solid rgba(16,185,129,0.2) !important;
    border-bottom: 1px solid rgba(16,185,129,0.2) !important;
}

/* Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}
/* Staggering for child elements */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* Restored Global Components */
.wireframe-view {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.wireframe-view.active {
    opacity: 1;
    pointer-events: auto;
}

/* Wireframe Elements */
.wf-block {
    background: #f1f3f5;
    border-radius: 6px;
    animation: wfFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.wf-text {
    background: #e9ecef;
    height: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.wf-title {
    background: #dee2e6;
    height: 24px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.wf-btn {
    background: rgba(16,185,129,0.2);
    height: 36px;
    border-radius: 20px;
    width: 120px;
}
.wf-img {
    background: #e9ecef;
    border-radius: 8px;
}

@keyframes wfFadeInUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Stagger animations inside active view */
.wireframe-view.active .wf-delay-1 { animation-delay: 0.1s; }
.wireframe-view.active .wf-delay-2 { animation-delay: 0.2s; }
.wireframe-view.active .wf-delay-3 { animation-delay: 0.3s; }
.wireframe-view.active .wf-delay-4 { animation-delay: 0.4s; }
.wireframe-view.active .wf-delay-5 { animation-delay: 0.5s; }

/* Selector Menu */
.selector-item {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid transparent;
    padding-left: 1.5rem !important;
}
.selector-item.active {
    background: rgba(16,185,129,0.04);
    border-left: 4px solid #10B981;
    transform: scale(1.02) translateX(5px);
}
.selector-item .selector-indicator {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}
.selector-item.active .selector-indicator {
    opacity: 1;
    transform: scale(1);
}
.selector-description {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.selector-item.active .selector-description {
    display: block;
}

/* Foundation Pills */
.foundation-pill {
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}
.foundation-pill:hover, .foundation-pill.active {
    background: rgba(16,185,129,0.1) !important;
    border-color: rgba(16,185,129,0.3) !important;
    transform: translateY(-2px);
}
.foundation-pill:hover .foundation-icon, .foundation-pill.active .foundation-icon {
    color: #10B981 !important;
}



.wf-text-dark { color: #212529 !important; }
.wf-text-muted { color: #6c757d !important; }

/* Dark Mode Overrides for Mock Browser Wireframes */
html[data-theme="dark"] #wf-corporate .flip-front { background: #12151c !important; }
html[data-theme="dark"] #wf-corporate .wf-text-dark { color: #f8f9fa !important; }
html[data-theme="dark"] #wf-corporate .text-dark { color: #f8f9fa !important; }
html[data-theme="dark"] #wf-corporate .wf-text-muted { color: #a0aec0 !important; }
html[data-theme="dark"] #wf-corporate .text-muted { color: #a0aec0 !important; }
html[data-theme="dark"] #wf-corporate .border-light { border-color: rgba(255,255,255,0.05) !important; }
html[data-theme="dark"] #wf-corporate .bg-light { background: #1a202c !important; }
html[data-theme="dark"] #wf-corporate .btn-dark { background: #ffffff !important; color: #000000 !important; }

html[data-theme="dark"] #wf-portfolio .flip-front { background: #12151c !important; }
html[data-theme="dark"] #wf-portfolio .wf-text-dark { color: #f8f9fa !important; }
html[data-theme="dark"] #wf-portfolio .text-dark { color: #f8f9fa !important; }
html[data-theme="dark"] #wf-portfolio .wf-text-muted { color: #a0aec0 !important; }
html[data-theme="dark"] #wf-portfolio .text-muted { color: #a0aec0 !important; }
html[data-theme="dark"] #wf-portfolio img.rounded-circle { border-color: #2d3748 !important; }

html[data-theme="dark"] #wf-landing .flip-front { background: linear-gradient(135deg, #12151c 0%, #1a202c 100%) !important; }
html[data-theme="dark"] #wf-landing .wf-text-dark { color: #f8f9fa !important; }
html[data-theme="dark"] #wf-landing .text-dark { color: #f8f9fa !important; }
html[data-theme="dark"] #wf-landing .wf-text-muted { color: #a0aec0 !important; }
html[data-theme="dark"] #wf-landing .text-muted { color: #a0aec0 !important; }
html[data-theme="dark"] #wf-landing .bg-white { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.1) !important; }
html[data-theme="dark"] #wf-landing input { color: #f8f9fa !important; }

.wireframe-view {
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.wireframe-view::-webkit-scrollbar {
    display: none;
}
.wireframe-view.active .wf-delay-6 { animation-delay: 0.6s; }
.wireframe-view.active .wf-delay-7 { animation-delay: 0.7s; }

/* Refined Selector Item Hover */
.selector-item:hover:not(.active) {
    border-left: 4px solid rgba(16,185,129,0.3);
    background: rgba(16,185,129,0.015);
}
.selector-item:hover:not(.active) h3 {
    color: #10B981 !important;
}

/* Tooltip container for absolute positioning */
.tooltip-container-wrapper {
    position: relative;
    overflow: hidden;
}


/* Override the display: none from earlier */

/* Website Decision Map */
.decision-node {
    background: #fff;
    border: 2px solid rgba(16,185,129,0.15);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.decision-node:hover {
    border-color: #10B981;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(16,185,129,0.1);
}
.decision-question {
    background: #10B981;
    color: white;
    font-weight: 800;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    display: inline-block;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(16,185,129,0.25);
    letter-spacing: 0.05em;
}
.decision-line-v {
    width: 2px;
    background: rgba(16,185,129,0.3);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.decision-line-h {
    height: 2px;
    background: rgba(16,185,129,0.3);
    position: absolute;
    top: 0;
    z-index: 1;
}
.decision-arrow {
    width: 0; 
    height: 0; 
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid rgba(16,185,129,0.3);
    margin: 0 auto;
}
html[data-theme="dark"] .decision-node {
    background: #1a202c;
    border-color: rgba(16,185,129,0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
html[data-theme="dark"] .decision-node:hover {
    border-color: #10B981;
    background: #232b3b;
}
html[data-theme="dark"] .decision-node .wf-text-dark {
    color: #f8f9fa !important;
}
/* Dark mode fix for WHY CONVEREXA badge */
html[data-theme="dark"] .why-badge {
    color: var(--primary-color) !important;
}

/* Dark mode overrides for What We Build Section */
html[data-theme="dark"] #services h2.display-5,
html[data-theme="dark"] #services h3,
html[data-theme="dark"] #services p {
    color: #ffffff !important;
}

html[data-theme="dark"] #services .text-muted {
    color: #cbd5e1 !important;
}

/* Emerald Green Spray Glow for Why Converexa Section */
html[data-theme="dark"] .why-spray-glow {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(16, 185, 129, 0) 70%) !important;
}

/* Emerald Green Spray Background for the entire section in Dark Mode */
html[data-theme="dark"] .split-features-section {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.2) 0%, rgba(26, 26, 26, 1) 100%) !important;
    background-color: #1a1a1a !important; /* fallback */
}

/* Make the hero spray a bit darker emerald green in Light Mode ONLY */
html:not([data-theme="dark"]) .hero-bg-glow {
    background: radial-gradient(circle, rgba(4, 120, 87, 0.4) 0%, rgba(255, 255, 255, 0) 70%) !important;
}

/* Make the aurora glow darker emerald green in Light Mode ONLY for About Section */
html:not([data-theme="dark"]) .about-section .aurora-glow {
    background: radial-gradient(circle, rgba(4, 120, 87, 0.25) 0%, rgba(255, 255, 255, 0) 70%) !important;
}

/* Darker Emerald Glow at bottom of Hero section */
.hero-bg-glow-bottom {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 70%;
    height: 90%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
    animation: slowGlow 9s ease-in-out infinite alternate-reverse;
}

/* Darker in light mode only */
html:not([data-theme="dark"]) .hero-bg-glow-bottom {
    background: radial-gradient(circle, rgba(4, 120, 87, 0.4) 0%, rgba(255, 255, 255, 0) 70%) !important;
}

/* Emerald Green Spray for Our Story in Dark Mode ONLY */
html:not([data-theme="dark"]) .about-story-spray {
    display: none !important;
}
html[data-theme="dark"] .about-story-spray {
    display: block;
    position: absolute;
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(16,185,129,0.4) 0%, rgba(255,255,255,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: blur(80px);
    pointer-events: none;
}

html[data-theme="dark"] .about-story-spray-2 {
    display: block;
    position: absolute;
    width: 1400px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(16,185,129,0.3) 0%, rgba(255,255,255,0) 70%);
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: blur(90px);
    pointer-events: none;
}
html:not([data-theme="dark"]) .about-story-spray-2 {
    display: none !important;
}

/* Utility for dark mode only sprays */
html:not([data-theme="dark"]) .dark-only-spray {
    display: none !important;
}

html[data-theme="dark"] #why-choose-converexa.bg-white {
    background-color: #051a11 !important;
}

html[data-theme="dark"] .join-section {
    background-color: #051a11 !important;
    background-image: none !important;
}
/* Express Logo Settings */
.express-logo {
    font-size: 1.8rem !important; /* Make the logo noticeably larger */
}

/* Express Logo Dark Mode Support */
html[data-theme="dark"] .express-logo {
    background-color: #ffffff !important;
    border-radius: 8px !important; /* Rounded background */
    padding: 4px 8px !important;
    margin-left: -4px;
    margin-right: 12px !important; /* Keep spacing consistent with the larger size */
}

/* General Accordion Dark Mode Fixes */
html[data-theme="dark"] .accordion-button {
    color: #f8fafc !important;
}
html[data-theme="dark"] .accordion-button::after {
    filter: invert(1) brightness(2) !important;
}

/* FAQ Section Dark Mode Background */
html[data-theme="dark"] #faq-section {
    background: linear-gradient(135deg, #121416 0%, #0d3a24 50%, #121416 100%) !important;
}
html[data-theme="dark"] #faq-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: -1;
    pointer-events: none;
}

/* Make the PHP GD phone image turn white on hover like text */
.footer-top a img[src*="phone_image.php"], .footer-top a img[src*="email_image.php"] {
    transition: filter 0.3s ease;
}
.footer-top a:hover img[src*="phone_image.php"], .footer-top a:hover img[src*="email_image.php"] {
    filter: brightness(0) invert(1);
}

/* =========================================
   PRIVACY WIDGET (stsite_consent)
   ========================================= */
.privacy-widget-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 320px;
    background-color: var(--secondary-color);
    color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    z-index: 1050;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom left;
}

.privacy-widget-container.minimized {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.privacy-x-small {
    font-size: 0.75rem;
}

.privacy-widget-container .form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
}

.privacy-widget-container .form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.privacy-widget-container .form-switch .form-check-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Privacy Trigger Floating Button */
.privacy-trigger {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
    z-index: 1049;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.privacy-trigger:hover {
    transform: scale(1.1);
}

/* Flip Animation CSS for Services Page */
.wireframe-view {
    perspective: 1000px;
    background: transparent !important; /* Override inline backgrounds */
}
.flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.flip-inner.is-flipped {
    transform: rotateY(180deg);
}
.flip-front, .flip-back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: inherit;
    overflow: hidden;
}
.flip-back {
    transform: rotateY(180deg);
    background: #ffffff;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}
.flip-front { z-index: 1; }
.flip-back { z-index: 2; }
.flip-inner.is-flipped .flip-front { pointer-events: none; }
.flip-inner:not(.is-flipped) .flip-back { pointer-events: none; }

/* Mock Browser Header Hide State */
.mock-browser-header {
    transition: all 0.4s ease;
    max-height: 50px;
    opacity: 1;
    overflow: hidden;
}
.mock-browser-header.hide-header {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-bottom: 0px solid transparent;
}

/* Mock Browser Dark Mode Adjustments */
html[data-theme="dark"] .mock-browser {
    background: #1e1e1e;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
html[data-theme="dark"] .mock-browser-header {
    background: #2d2d2d;
    border-bottom-color: rgba(255,255,255,0.05);
}
html[data-theme="dark"] .wireframe-container {
    background-color: #1e1e1e;
}
html[data-theme="dark"] .flip-back {
    background-color: #262626;
    color: #f8f9fa;
    border-color: rgba(255,255,255,0.1) !important;
}
html[data-theme="dark"] .flip-back .text-muted {
    color: #adb5bd !important;
}
html[data-theme="dark"] .flip-back .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
html[data-theme="dark"] .flip-back .border-top {
    border-top-color: rgba(255,255,255,0.1) !important;
}
html[data-theme="dark"] .flip-back .btn-outline-dark {
    color: #f8f9fa;
    border-color: #f8f9fa;
}
html[data-theme="dark"] .flip-back .btn-outline-dark:hover {
    background-color: #f8f9fa;
    color: #212529;
}

/* === MOBILE RESPONSIVENESS FIXES === */
/* html, body {
    overflow-x: hidden;
    width: 100%;
} */

/* === MOBILE RESPONSIVENESS FIXES === */
html, body, main {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

@media (max-width: 991px) {
    /* Pull floating badges inward on mobile so they don't break layout */
    .badge-seo {
        left: 10px !important;
        transform: scale(0.85);
        transform-origin: left center;
    }
    .badge-perf {
        right: 10px !important;
        transform: scale(0.85);
        transform-origin: right center;
    }
    
    /* Ensure hero mockups don't overflow */
    .hero-content-right .position-relative {
        max-width: 100% !important;
    }
    
    /* Fix rigid 500px or 600px widths on mobile */
    .why-spray-glow {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Adjust mockup font sizes for tiny screens */
    .mockup-header-actions {
        display: none !important; /* Hide tiny window controls on mobile to save space */
    }
}

@media (max-width: 575px) {
    
    
    /* Keep the tech stack logos in one line, but shrink them */
    .tech-stack-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    /* Hero heading specifically for mobile */
    .hero-heading {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 991px) {
    /* Absolute bulletproofing for inline background gradients on mobile */
    [style*="width: 600px"], 
    [style*="width: 700px"], 
    [style*="width: 800px"], 
    [style*="width: 1000px"] {
        max-width: 100vw !important;
    }
    
    /* Ensure padding for containers is appropriate on mobile */
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* --- MOCKUP MOBILE RESPONSIVENESS FIXES --- */
@media (max-width: 575px) {
    /* Scale down the entire mockup wrapper to ensure it fits small screens perfectly */
    .hero-content-right {
        transform: scale(0.9);
        transform-origin: top center;
        /* margin-left: -15px; 
        margin-right: -15px; */
    }

    /* Bring the floating badges securely inside the boundary so they don't get cut off */
    .badge-seo {
        left: 20px !important;
        top: 5% !important;
        transform: scale(0.75) !important;
        transform-origin: left center;
        z-index: 10 !important;
    }

    .badge-perf {
        right: 20px !important;
        bottom: 5% !important;
        transform: scale(0.75) !important;
        transform-origin: right center;
        z-index: 10 !important;
    }

    /* Ensure the browser header tools (red/yellow/green dots and spacer) don't force a wide width */
    .browser-header .d-flex.gap-2 {
        gap: 0.25rem !important;
    }
    .browser-header > div:last-child {
        width: 20px !important; /* shrink the right spacer */
    }
    
    /* Make the Review Section avatar perfectly round and prevent squishing */
    .browser-body .rounded-circle {
        flex-shrink: 0 !important;
        min-width: 24px !important;
        min-height: 24px !important;
    }
}

/* --- PROCESS TIMELINE MOBILE FIX --- */
@media (max-width: 991px) {
    /* Hide the horizontal timeline progress line when the grid wraps into multiple rows */
    .process-line-bg, .process-line-fill {
        display: none !important;
    }
}


/* --- ABOUT SECTION CARDS MOBILE UI-UX FIX --- */
@media (max-width: 767px) {
    /* Make the cards compact and left-aligned on mobile */
    .about-section .bg-white.rounded-4 {
        padding: 1.25rem !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .about-section .icon-circle {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
        width: 48px !important;
        height: 48px !important;
    }

    .about-section .icon-circle svg {
        width: 24px !important;
        height: 24px !important;
    }

    .about-section .card-title {
        font-size: 1.15rem !important;
        margin-bottom: 0.75rem !important;
    }

    .about-section ul {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        /* Turn the bullet list into a wrap-friendly row of chips or just clean rows */
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.5rem 1rem !important;
    }
    
    .about-section ul li {
        font-size: 0.8rem !important;
        width: auto !important;
        white-space: nowrap; /* Prevent words from breaking awkwardly */
    }
}

/* --- PROCESS TIMELINE MOBILE UI/UX FIX --- */
@media (max-width: 991px) {
    /* Stack them beautifully as a vertical timeline */
    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .process-step {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important; /* Match heights */
        text-align: left !important;
        gap: 1rem;
    }

    /* Keep the numbered node on the left */
    .process-node {
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-shrink: 0;
        margin-top: 10px !important;
    }

    /* Make the card take up the remaining space */
    .process-card {
        margin-top: 0 !important;
        width: 100%;
        display: flex !important;
        flex-direction: column;
        align-items: flex-start !important;
        padding: 1.25rem !important;
    }

    /* Hide the redundant inner icon, the numbered node is enough on mobile */
    .process-icon-container {
        display: none !important;
    }

    /* Fix the text constraints and remove the ugly manual line breaks */
    .process-card p {
        max-width: 100% !important;
        min-height: auto !important;
        margin: 0 !important;
        font-size: 0.9rem !important;
    }

    .process-card p br {
        display: none !important;
    }
}

/* --- VERTICAL TIMELINE LINE MOBILE FIX --- */
@media (max-width: 991px) {
    .process-step {
        position: relative;
    }
    
    /* Draw a vertical line from each node down to the next one */
    .process-step::before {
        content: "";
        position: absolute;
        top: 50px; /* Start below the 50px circle */
        left: 24px; /* Center of the 50px circle (25px - 1px) */
        bottom: -1.25rem; /* Extend down to the gap between steps */
        width: 2px;
        background: rgba(16,185,129,0.3);
        z-index: 1;
    }

    /* Remove the line from the very last step so it doesn't poke out the bottom */
    .process-step:last-child::before {
        display: none;
    }
}

/* --- FIX OVERLAPPING BADGES ON MOBILE MOCKUP --- */
@media (max-width: 991px) {
    /* Instead of floating OVER the mockup and blocking content, 
       we'll turn them into a neat row of chips BELOW the mockup */
    .split-features-section .col-lg-7 {
        text-align: center !important; /* Center the chips */
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    /* Make the mockup take full width so it stays on top */
    .split-features-section .col-lg-7 > .website-mockup {
        width: 100%;
        margin-bottom: 1rem !important;
    }

    .split-features-section .col-lg-7 > .float-anim-1,
    .split-features-section .col-lg-7 > .float-anim-2,
    .split-features-section .col-lg-7 > .float-anim-3 {
        position: static !important; /* Remove absolute positioning */
        transform: scale(0.9) !important; /* Slightly smaller */
        margin: 0 !important;
        display: inline-flex !important;
        animation: none !important; /* Disable floating animation since they are grounded now */
    }
}

/* --- FIX OVERLAPPING BADGES ON HERO MOCKUP --- */
@media (max-width: 991px) {
    /* Turn the entire right column into a flex container */
    .hero-content-right {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    /* Ensure the browser mockup takes full width and sits above the badges */
    .hero-content-right > .browser-mockup {
        width: 100%;
        margin-bottom: 0.5rem !important;
    }

    /* Strip the absolute positioning from the badges and place them beneath */
    .hero-content-right > .badge-seo,
    .hero-content-right > .badge-perf {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: scale(0.85) !important;
        margin: 0 !important;
        display: inline-flex !important;
        animation: none !important;
    }
}

/* --- REORDER HERO BADGES TO SIT BELOW MOCKUP --- */
@media (max-width: 991px) {
    .hero-content-right > .browser-mockup {
        order: -1 !important; /* Force the mockup to be the FIRST item in the flex container */
    }
    
    .hero-content-right > .badge-seo {
        order: 1 !important; /* Force badges to sit below */
    }
    
    .hero-content-right > .badge-perf {
        order: 2 !important;
    }
}

/* --- FIX INVISIBLE BADGES --- */
@media (max-width: 991px) {
    .hero-content-right > .badge-seo,
    .hero-content-right > .badge-perf {
        opacity: 1 !important; /* The 'animation: none' previously prevented them from fading in! */
    }
}

/* --- FIX HERO BACKGROUND SHARP EDGES ON MOBILE --- */
@media (max-width: 991px) {
    /* Stretch the radial background glows so they span the entire width of the phone,
       preventing any sharp vertical lines while preserving the desktop-like gradient look */
    .hero-bg-glow, 
    .hero-bg-glow-bottom, 
    .modern-hero::before {
        width: 250vw !important;
        left: -75vw !important;
        height: 150vh !important;
        opacity: 0.6 !important; /* Slightly soften them so they blend better on narrow screens */
    }
}

/* === ABOUT PAGE MOBILE RESPONSIVENESS FIXES === */
@media (max-width: 991px) {
    /* 1. Hero Section Badges: Ground them below the mockup to prevent overlapping/clipping */
    .about-hero-bg .col-lg-5 {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .about-hero-bg .browser-frame-about {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .about-hero-bg .floating-badge-about {
        position: static !important;
        transform: scale(0.85) !important;
        margin: 0 !important;
        display: inline-flex !important;
        animation: none !important;
        opacity: 1 !important; /* Ensure they are visible if animation was handling opacity */
    }

    /* 2. Orbit Animation Container: Scale down to prevent massive horizontal overflow on mobile */
    #concentric-orbit-container {
        transform: scale(0.65) !important;
        transform-origin: center center;
        margin-top: -60px !important;
        margin-bottom: -60px !important;
    }

    /* 3. Our Philosophy Reading Box: Remove hardcoded desktop width so it fits screen */
    #our-story .col-12[style*="width: 550px"] {
        width: 100% !important;
        flex: 1 1 auto !important;
    }
}

/* === ABOUT PAGE MOBILE RESPONSIVENESS FIXES (CONT) === */
@media (max-width: 991px) {
    /* 4. Stretch the background radial glows to prevent sharp vertical cuts on narrow screens */
    .dark-only-spray {
        width: 250vw !important;
        left: -75vw !important;
        right: auto !important;
        height: 150vh !important;
        opacity: 0.25 !important; /* Soften the overlapping glows */
    }
}

/* --- FIX TIMELINE MOBILE UI (REMOVE + MARK & REDUCE CARD WIDTH) --- */
@media (max-width: 767.98px) {
    /* 1. Remove the horizontal line that causes the ugly '+' mark */
    .timeline-card::before {
        display: none !important;
    }

    /* 2. Slightly reduce the card's width on mobile so it doesn't span edge-to-edge */
    .timeline-card-left .timeline-card, 
    .timeline-card-right .timeline-card {
        width: 90% !important; /* Reduce width */
        margin-right: auto !important; /* Keep it left-aligned */
        padding: 1.25rem !important; /* Slightly tighter padding for mobile */
    }
}

/* === MISSION & VISION DESKTOP-STYLE LAYOUT FOR MOBILE === */
@media (max-width: 767.98px) {
    /* Force the cards to sit side-by-side like on desktop */
    #convergence-section .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .conv-mission, .conv-vision {
        width: 50% !important;
        flex: 0 0 50% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-bottom: 0 !important;
    }

    /* Reduce card padding and font sizes so they actually fit in a 50% width mobile column */
    .mission-card, .vision-card {
        padding: 1rem !important;
    }
    .mission-card h5, .vision-card h5 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    .mission-card p.small, .vision-card p.small {
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
    }
    .mission-card .tracking-wide, .vision-card .tracking-wide {
        font-size: 0.75rem !important;
        letter-spacing: 1px !important;
    }

    /* Hide the mobile down arrow */
    .conv-mobile-arrow {
        display: none !important;
    }

    /* Force the desktop SVG converging lines to show on mobile */
    .conv-lines {
        display: block !important;
        margin-top: -15px !important; /* Slightly tighter margin for mobile */
        height: 100px !important; /* Shorter height so lines aren't too long */
    }
    .conv-lines svg {
        height: 100px !important;
    }

    /* The central hub (Converexa node) needs to shrink slightly to fit */
    .conv-center-col .conv-hub {
        min-width: 180px !important;
        padding: 0.75rem 1rem !important;
        margin-top: -40px !important;
    }
    .conv-center-col .conv-hub p {
        font-size: 0.7rem !important;
    }
    .conv-center-col .conv-hub h4 {
        font-size: 1rem !important;
    }
}

/* === HOTFIX: MISSION & VISION WRAPPING === */
@media (max-width: 767.98px) {
    /* Allow the row to wrap so the central hub goes to the next line! */
    #convergence-section .row {
        flex-wrap: wrap !important;
    }
    
    /* Ensure the hub takes the full width below the cards */
    .conv-center-col {
        width: 100% !important;
        flex: 0 0 100% !important;
        margin-top: 0 !important; /* Reset any negative margins pulling it up */
    }
}

/* === HOTFIX: MAKE ORBIT ANIMATION BIGGER ON MOBILE === */
@media (max-width: 767.98px) {
    /* Increase the scale from 0.65 to 0.8 to make it more prominent on mobile */
    #concentric-orbit-container {
        transform: scale(0.8) !important;
        margin-top: -30px !important;  /* Adjust margins so it doesn't overlap text */
        margin-bottom: -30px !important;
    }
}

/* === HOTFIX: TWEAK ORBIT ANIMATION SCALE ON MOBILE === */
@media (max-width: 767.98px) {
    #concentric-orbit-container {
        transform: scale(0.7) !important;
        margin-top: -45px !important;  
        margin-bottom: -45px !important;
    }
}

/* === SERVICES PAGE MOBILE RESPONSIVENESS FIXES === */
@media (max-width: 767.98px) {
    /* 1. Prevent absolutely positioned background glows from causing horizontal scrolling */
    #how-to-choose, 
    .cta-section,
    section.py-5.bg-white:not(.overflow-hidden) {
        overflow: hidden !important;
    }

    /* 2. Prevent the IDE browser mockup sidebar/nav from breaking narrow screens (e.g. iPhone SE) */
    .browser-mockup [style*="min-width: 350px"] {
        min-width: 100% !important;
    }
    
    .browser-mockup .d-flex.flex-column[style*="width: 50px"] {
        width: 40px !important; /* Slightly slimmer sidebar on mobile */
    }
}

/* === HOTFIX: HOW TO CHOOSE DECISION TREE MOBILE LAYOUT === */
@media (max-width: 991.98px) {
    /* Hide the confusing standalone text down-arrows */
    .htc-tree-text.d-lg-none {
        display: none !important;
    }

    /* Transform the goal label into a clear, distinct pill */
    .htc-label {
        background-color: rgba(16, 185, 129, 0.1);
        color: #10B981 !important;
        border: 1px solid rgba(16, 185, 129, 0.2);
        border-radius: 50px;
        padding: 10px 20px;
        height: auto !important;
        font-size: 12px !important;
        margin-top: 1rem !important;
        margin-bottom: 25px !important;
        position: relative;
    }
    
    /* Add a clean visual connector line from the pill directly to the card below it */
    .htc-label::after {
        content: '';
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 25px;
        background-color: #10B981;
        opacity: 0.5;
    }

    /* Add space between each complete goal-card group on mobile */
    #how-to-choose .col-lg-3 {
        margin-bottom: 1.5rem !important;
    }
}

/* === HOTFIX: FORCE DESKTOP S-CURVE ROADMAP LAYOUT ON MOBILE FOR PROCESS SECTION === */
@media (max-width: 991.98px) {
    /* 1. Unhide the SVG wrapper and scale it down */
    .neon-timeline-container > .d-none.d-md-block {
        display: block !important;
        width: 120px !important; /* Scale down SVG width so it doesn't overlap text */
    }

    /* 2. Hide the boring straight mobile vertical line */
    .timeline-center-line {
        display: none !important;
    }

    /* 3. Force the rows to sit side-by-side (Left Space / Center Dot / Right Card) */
    .neon-timeline-container .timeline-item {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    /* 4. Strictly partition the 3 columns (45% - 10% - 45%) */
    
    /* Left column */
    .neon-timeline-container .timeline-item > div:nth-child(1) {
        width: 45% !important;
        flex: 0 0 45% !important;
        display: block !important;
    }
    
    /* Center column (Dot) */
    .neon-timeline-container .timeline-item > div:nth-child(2) {
        width: 10% !important;
        flex: 0 0 10% !important;
        display: flex !important;
    }

    /* Right column */
    .neon-timeline-container .timeline-item > div:nth-child(3) {
        width: 45% !important;
        flex: 0 0 45% !important;
        display: block !important;
    }

    /* 5. Miniaturize the cards and dots so the text actually fits in a 45% column! */
    .neon-timeline-container .timeline-content-col {
        padding: 0 !important; /* Remove bootstrap horizontal padding */
    }
    .neon-timeline-container .timeline-card {
        padding: 0.75rem !important;
    }
    .neon-timeline-container .timeline-card h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }
    .neon-timeline-container .timeline-card p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }
    .neon-timeline-container .timeline-card .step-num,
    .neon-timeline-container .timeline-card p.text-primary {
        font-size: 0.6rem !important;
        letter-spacing: 0px !important;
    }

    .timeline-marker {
        width: 24px !important;
        height: 24px !important;
    }
    .timeline-marker i {
        font-size: 10px !important;
    }
}

/* === HOTFIX 2: FIX S-CURVE OVERLAPPING CARDS ON MOBILE === */
@media (max-width: 991.98px) {
    /* Shrink the SVG wrapper so the bezier curves don't swing out into the cards */
    .neon-timeline-container > .d-none.d-md-block {
        width: 70px !important; 
    }

    /* Adjust the column partition to give the center line enough breathing room (42 - 16 - 42) */
    .neon-timeline-container .timeline-item > div:nth-child(1) {
        width: 42% !important;
        flex: 0 0 42% !important;
    }
    
    .neon-timeline-container .timeline-item > div:nth-child(2) {
        width: 16% !important;
        flex: 0 0 16% !important;
    }

    .neon-timeline-container .timeline-item > div:nth-child(3) {
        width: 42% !important;
        flex: 0 0 42% !important;
    }

    /* Ensure timeline dots stay perfectly centered without overlapping */
    .timeline-marker {
        width: 22px !important;
        height: 22px !important;
    }
    .timeline-marker i {
        font-size: 9px !important;
    }
    
    /* Slightly reduce padding in the cards to maximize text space */
    .neon-timeline-container .timeline-card {
        padding: 0.6rem !important;
    }
}

/* === CONTACT PAGE MOBILE RESPONSIVENESS FIXES === */
@media (max-width: 767.98px) {
    /* 1. Ensure the intl-tel-input phone dropdown takes full width */
    .iti {
        width: 100% !important;
        display: block !important;
    }
    
    /* 2. Scale down the phone mockup slightly on very small screens to avoid horizontal scroll */
    .phone-mockup {
        transform: scale(0.9);
        transform-origin: center top;
        margin-bottom: -60px; /* Offset the whitespace left by scaling */
    }
}

@media (max-width: 767.98px) {
    /* 3. Reduce form padding on small screens to give fields more room */
    .custom-form {
        padding: 1.5rem !important;
    }
}

/* Global fix for intl-tel-input to stretch to col-12 / col-md-6 width universally */
.iti {
    width: 100% !important;
    display: block !important;
}

/* Navbar Theme Logo Switching */
html[data-theme="dark"] .logo-light {
    display: none !important;
}
html[data-theme="dark"] .logo-dark {
    display: block !important;
}

/* Base Logo Visibility */
.logo-dark {
    display: none !important;
}

/* Responsive Brand Logo Sizing */
.nav-brand-logo {
    height: 100px;
    width: auto;
    max-height: 100%;

    transition: height 0.3s ease, transform 0.3s ease;
}

/* Tablets (landscape & portrait) */
@media (max-width: 991.98px) {
    .nav-brand-logo {
        height: 75px;

    }
}

/* Mobile Phones */
@media (max-width: 575.98px) {
    .nav-brand-logo {
        height: 55px;

    }
}

/* Unscrolled Mobile Menu Dropdown Background */
@media (max-width: 991.98px) {
    .navbar.fixed-top .navbar-collapse {

         position: absolute; /* <-- ADD THIS */
        top: 100%;          /* <-- ADD THIS (Anchors it to the bottom of the pill) */
        left: 0;            /* <-- ADD THIS */
        width: 100%;        /* <-- ADD THIS */
        z-index: 1000;      /* <-- ADD THIS (Ensures it floats above the page) */

        background-color: var(--navbar-bg);
        padding: 15px;
        border-radius: 12px;
        /* margin-top: 10px; */
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    html[data-theme="dark"] .navbar.fixed-top .navbar-collapse {
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
}

/* Global Theme Switch Zero-Delay Override */
html.theme-switching, html.theme-switching * {
    transition: none !important;
}


/* New Code For Navbar 'X' STARTS */
/* --- Custom Animated Hamburger Menu --- */
.custom-toggler {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px; /* Spacing between the 3 lines */
    width: 40px;
    height: 40px;
}

/* Base style for the 3 lines */
.custom-toggler .toggler-line {
    width: 24px;
    height: 2px;
    background-color: #1a1e21; /* Dark line color for light mode */
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Make lines white in Dark Mode */
html[data-theme="dark"] .custom-toggler .toggler-line {
    background-color: #ffffff;
}

/* === The 'X' Animation (Triggers automatically via Bootstrap) === */
.custom-toggler[aria-expanded="true"] .top-line {
    transform: translateY(7px) rotate(45deg);
}

.custom-toggler[aria-expanded="true"] .middle-line {
    opacity: 0; /* Fade out the middle line */
}

.custom-toggler[aria-expanded="true"] .bottom-line {
    transform: translateY(-7px) rotate(-45deg);
}
/* New Code For Navbar 'X' ENDS */

/* Footer Responsive Starts */
/* --- Responsive Footer Logo Sizing --- */
.footer-brand-logo {
    height: 80px; /* Desktop Size */
    width: auto;
    transition: height 0.3s ease;
}

/* Tablets */
@media (max-width: 991.98px) {
    .footer-brand-logo {
        height: 60px;
    }
}

/* Mobile Phones */
@media (max-width: 575.98px) {
    .footer-brand-logo {
        height: 60px;
    }
}
/* Footer Responsive Ends */

/* Contact Icon CSS Start */
/* --- Responsive Chat Avatar Icon --- */
.chat-avatar-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: width 0.3s ease, height 0.3s ease;
}

/* Mobile Phones */
@media (max-width: 575.98px) {
    .chat-avatar-icon {
        width: 32px;
        height: 32px;
    }
}
/*Contact Icon For We're here*/
/* --- Responsive Contact Hero Icon --- */
.contact-hero-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: width 0.3s ease, height 0.3s ease;
}

/* Mobile Phones */
@media (max-width: 575.98px) {
    .contact-hero-icon {
        width: 60px;
        height: 60px;
    }
}
/* Contact Icon CSS Ends */
/*Footer START  */
/* --- Permanent Dark Glass Privacy Policy Modal --- */
#privacyModal .modal-content {
    background-color: rgba(1, 13, 9, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: none !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5) !important;
}

#privacyModal .modal-title {
    color: #ffffff !important;
}

#privacyModal .text-muted, 
#privacyModal .text-light {
    color: rgba(255, 255, 255, 0.85) !important;
}

#privacyModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}
/* Footer ENDS */
/* Privacy Policy Slider Start*/
/* =========================================
   CUSTOM SCROLLBAR (PRIVACY POLICY POPUP ONLY)
   ========================================= */

/* Firefox Support */
#privacyModal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color, #10B981) transparent;
}

/* Chrome, Edge, and Safari Support */

/* Scope to the Privacy Modal ONLY */
#privacyModal .modal-body::-webkit-scrollbar {
    width: 6px; /* A very thin, sleek bar */
}

#privacyModal .modal-body::-webkit-scrollbar-track {
    background: transparent; /* Lets the dark glass show through! */
}

#privacyModal .modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color, #10B981); 
    border-radius: 10px;
}

#privacyModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #15d194; /* Brighter green when they hover over it */
}
/* Privacy Policy Slider Ends*/

/* Navbar Fixes Start */
/* --- Fix Navbar Wrapping & Centering ONLY on Mobile Screens --- */
/* @media (max-width: 450px) {
    .navbar .container {
        flex-wrap: nowrap !important;
        height: 100% !important; 
        align-items: center !important;
    }
    
    .navbar-brand {
        max-width: 70% !important; 
        display: flex;
        align-items: center;
        height: 100%; 
    }

    .nav-brand-logo {
        width: 100% !important; 
        height: auto !important;
        max-height: 100%; 
        object-fit: contain !important;
    }
} */
/* Navbar Fixes Ends */ 


/* Navbar Fixes Start */
/* --- Fix Navbar Wrapping & Centering ONLY on Mobile & Tablet Screens --- */
@media (max-width: 991.98px) {
    .navbar .container {
        flex-wrap: nowrap !important;
        height: 100% !important; /* Forces container to fill the pill */
        align-items: center !important;
    }
    
    .navbar-brand {
        max-width: 70% !important; 
        display: flex;
        align-items: center;
        height: 100%; /* Perfectly centers the logo vertically */
    }

    .nav-brand-logo {
        width: auto !important;  /* Keeps logo pinned to the left on iPads */
        max-width: 100% !important;
        height: auto !important;
        max-height: 100%; /* Ensures it never overflows the pill */
        object-fit: contain !important;
        object-position: left center !important; /* Forces it to the left edge */
    }
}
/* Navbar Fixes Ends */

/* Navbar Dropdown Fixes START */
/* =========================================
   UNIFIED MOBILE MENU (MORPHING PILL)
   ========================================= */

@media (max-width: 991.98px) {
    /* 1. When the menu is OPEN, flatten the bottom corners of the main pill */
    .navbar.fixed-top.scrolled:has(.navbar-collapse.show) {
        border-bottom-left-radius: 0px !important;
        border-bottom-right-radius: 0px !important;
        transition: border-radius 0.2s ease;
    }

    /* 2. Pull the dropdown up to touch the pill, and flatten its top corners! */
    .navbar.fixed-top .navbar-collapse {
        margin-top: 0px !important; /* Removes the gap! */
        border-top-left-radius: 0px !important;
        border-top-right-radius: 0px !important;
        border-bottom-left-radius: 16px !important;
        border-bottom-right-radius: 16px !important;
        
        /* Make sure it has a seamless background and unified shadow */
        border-top: 1px solid rgba(255,255,255,0.05); /* Very subtle divider line */
    }
    
    /* Ensure the unified shadow looks correct in dark mode */
    html[data-theme="dark"] .navbar.fixed-top.scrolled:has(.navbar-collapse.show) {
        box-shadow: 0 20px 40px rgba(0,0,0,0.7) !important;
    }
}
/* Navbar Dropdown Fixes ENDS */

/* Navbar Treansperent DropDown Fix Start */
/* =========================================
   FIX TRANSPARENT NAVBAR (0s INSTANT DELAY)
   ========================================= */

/* Dark Mode */
html[data-theme="dark"] .navbar.fixed-top:not(.scrolled):has(.navbar-collapse.show),
html[data-theme="dark"] .navbar.fixed-top:not(.scrolled):has(.navbar-collapse.collapsing) {
    background-color: rgba(26, 30, 33, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: none !important;
}

/* Light Mode */
html[data-theme="light"] .navbar.fixed-top:not(.scrolled):has(.navbar-collapse.show),
html[data-theme="light"] .navbar.fixed-top:not(.scrolled):has(.navbar-collapse.collapsing) {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: none !important;
}
/* Navbar Treansperent DropDown Fix Ends */

/* Cloudfare CSS Start */
/* =========================================
   FIX CLOUDFLARE TURNSTILE MOBILE OVERFLOW
   ========================================= */
@media (max-width: 450px) {
    .cf-turnstile {
        transform: scale(0.80);
        transform-origin: center center; 
        margin-bottom: -15px; 
    }
}
/* Cloudfare CSS Ends */

/* Quote Continue Hero Button Problem fix Start */
/* =========================================
   FIX MULTI-STEP BUTTON OVERFLOW ON TINY PHONES
   ========================================= */

@media (max-width: 400px) {
    /* Target all 3 Continue/Submit buttons in the multi-step form */
    #btn-continue-1, 
    #btn-continue-2, 
    #btn-continue-3 {
        padding-left: 14px !important;
        padding-right: 14px !important;
        font-size: 0.8rem !important; /* Make text slightly smaller */
    }
    
    /* Optional: slightly shrink the "Step 1 of 3" text to give the button more room */
    .d-flex.justify-content-between.align-items-center.mt-auto > span.text-muted {
        font-size: 0.75rem !important;
    }
}

/* =========================================
   MULTI-STEP QUOTE HEIGHT FIX
   ========================================= */

/* Default height for Desktop (perfectly tight) */
#quote-steps-wrapper {
    height: 350px;
}

/* Taller height for Mobile (gives text room to wrap!) */
@media (max-width: 575px) {
    #quote-steps-wrapper {
        height: 396px;
    }
}

/* Quote Continue Hero Button Problem fix End */

/* Why Business Choose Converexa Badged CSS Start */
/* Why Business Choose Converexa Badges Dark Mode Fix (High Priority) */
html[data-theme="dark"] body .split-features-section .col-lg-7 > .float-anim-1 .text-dark,
html[data-theme="dark"] body .split-features-section .col-lg-7 > .float-anim-2 .text-dark,
html[data-theme="dark"] body .split-features-section .col-lg-7 > .float-anim-3 .text-dark {
    color: #1a1a1a !important;
}

html[data-theme="dark"] body .split-features-section .col-lg-7 > .float-anim-1 .text-muted,
html[data-theme="dark"] body .split-features-section .col-lg-7 > .float-anim-2 .text-muted,
html[data-theme="dark"] body .split-features-section .col-lg-7 > .float-anim-3 .text-muted {
    color: #64748b !important;
}

html[data-theme="dark"] body .split-features-section .col-lg-7 > .float-anim-1,
html[data-theme="dark"] body .split-features-section .col-lg-7 > .float-anim-2,
html[data-theme="dark"] body .split-features-section .col-lg-7 > .float-anim-3 {
    background-color: #ffffff !important;
}
/* Why Business Choose Converexa Badged CSS End */
/* Cookies banner Style Start */
/* =========================================================
   ULTRA-SMALL MOBILE FIXES (280px to 359px)
   ========================================================= */
@media (max-width: 575.98px) {
    
    /* 1. Prevent massive headlines from causing horizontal scrolling */
    h1, .display-4, .display-5, .display-6, .htc-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word; 
    }

    /* 2. Reduce the empty space on the left/right of the screen */
    .container, .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* 3. Stop wide buttons from blowing past the edge of the screen */
        /* 3. Stop wide buttons from blowing past the edge of the screen, but protect w-100 form buttons */
    .btn:not(.w-100) {
        padding-left: 15px !important;
        padding-right: 15px !important;
        font-size: 0.9rem !important;
        width: auto !important; 
        max-width: 100% !important;
        margin-bottom: 10px;
    }
    
    .navbar .btn, .footer .btn {
        width: auto !important;
    }
    
    .btn.rounded-circle, #conv-play-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    /* 4. Shrink the Navbar Brand Logo */
    .nav-brand-logo {
        height: 40px !important;
    }

    /* 5. Fix the Cloudflare Turnstile box */
    .cf-turnstile {
        transform: scale(0.65) !important;
        transform-origin: left center;
    }

    /* 6. Stack side-by-side flexbox items into vertical columns */
    /* .d-flex:not(.navbar .d-flex) {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    } */
    
    /* 7. Fix the Cookie Banner X Button getting pushed off-screen */
    .privacy-widget-container {
        width: calc(100% - 30px) !important; 
        left: 15px !important;
        right: 15px !important;
        bottom: 15px !important;
    }
    /* Cookies banner Style End */

    /* Orbit pill Fixes Start */
    /* 10. Prevent Slider Numbers from squishing vertically */
    #reading-index {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* Allow the Reading Box header to wrap onto a second line if it gets too cramped */
    #reading-header {
        flex-wrap: wrap !important;
        gap: 15px !important; 
    }
    
    /* 11. Protect the Theme Switcher icons from being squished by global button rules */
    .theme-switcher .btn {
        width: 28px !important;
        height: 28px !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        min-width: unset !important;
    }
}

/* Footer Fixes Start (Now correctly applies up to 992px) */
@media (max-width: 991.98px) {
    /* 8. Prevent Footer text from overflowing and crashing */
    .footer-top .row, .footer-bottom .row {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        gap: 2rem !important; margin-bottom: 20px !important; padding-bottom: 20px !important;
    }
    
    .footer-top .col-lg-4, 
    .footer-top .col-md-6, 
    .footer-top .col-md-4,
    .footer-bottom .col-md-4 {
        height: auto !important;
        min-height: min-content !important; 
        margin-bottom: 0 !important;   
        flex: 0 0 auto !important;
        width: 100% !important;
        text-align: left !important; /* Keep left alignment */
    }
}
/* Footer Fixes End */

@media (max-width: 991.98px) {
    /* 9. BULLETPROOF ORBIT LOCK FOR ALL MOBILES AND TABLETS */
    #concentric-orbit-container {
        width: 500px !important;
        min-width: 500px !important;
        max-width: 500px !important;
        height: 500px !important;
        min-height: 500px !important;
        max-height: 500px !important;
        flex-shrink: 0 !important;
    }
}
/* Orbit pill Fixes END */

/* Orbit Dynamic Start */
/* Responsive Orbit Scaling for Smaller Phones */
@media (max-width: 420px) {
    #concentric-orbit-container { 
        transform: scale(0.6) !important; 
        margin-top: -60px !important; 
        margin-bottom: -60px !important; 
    }
}

@media (max-width: 340px) {
    #concentric-orbit-container { 
        transform: scale(0.5) !important; 
        margin-top: -80px !important; 
        margin-bottom: -80px !important; 
    }
}
/* Orbit Dynamic End */
/* Tick Mark Remover Start */
/* ---------------------------------------------------
   Remove Bootstrap Validation Icons (Green Tick / Red Info)
   --------------------------------------------------- */
.form-control.is-invalid, .was-validated .form-control:invalid,
.form-control.is-valid, .was-validated .form-control:valid,
.form-select.is-invalid, .was-validated .form-select:invalid,
.form-select.is-valid, .was-validated .form-select:valid {
    background-image: none !important;
}
/* Tick Mark Remover End */

/* Service Card Grid Landing Page in Service Page Fix Start */
/* Fix ONLY the Landing Page Flip Card on ultra-small mobile screens */
@media (max-width: 399px) {
    /* 1. Stop vertical centering, add padding for the X button, allow scrolling */
    #wf-landing .flip-back {
        justify-content: flex-start !important;
        padding-top: 60px !important;
        overflow-y: auto !important;
    }
    
    /* 2. Stack the bottom CTA buttons vertically so they don't squish */
    #wf-landing .flip-back .border-top.d-flex {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    /* 3. Make the stacked buttons take full width */
    #wf-landing .flip-back .border-top.d-flex .btn {
        width: 100% !important;
        margin: 0 !important;
    }
}
/* Service Card Grid Landing Page in Service Page Fix End */
/* Fix Navbar Squishing on Small Laptops / Tablets in Landscape (992px to 1100px) Start*/
@media (min-width: 992px) and (max-width: 1100px) {
    /* 1. Reduce the massive 36px gap between links */
    .navbar-nav {
        gap: 12px !important; 
    }
    
    /* 2. Stop 'Contact Us' from ever breaking into two lines */
    .navbar-nav .nav-item {
        white-space: nowrap !important; 
    }

    /* 3. Reduce the large margin before the 'Get Quote' button */
    .navbar-collapse .ms-lg-4 {
        margin-left: 15px !important; 
    }
    
    /* 4. Optional: Shrink the logo very slightly to make extra room */
    .nav-brand-logo {
        max-width: 180px !important;
        height: auto !important;
    }
}
/* Fix Navbar Squishing on Small Laptops / Tablets in Landscape (992px to 1100px) END*/
/*  */
/* =========================================================
   MOBILE PERFORMANCE FIXES (Stop Freezing & Lag)
   ========================================================= */
@media (max-width: 991px) {
    /* 1. Turn off massive Aurora blurs that crash mobile GPUs */
    .aurora-glow, 
    .why-spray-glow {
        display: none !important;
    }

    /* 2. Turn off Navbar Glassmorphism blur that freezes the menu */
    .navbar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/*ENd*/
/* =========================================================
   HERO - STABLE VISIBILITY FIX Start
   ========================================================= */

.hero-heading,
.hero-description,
.hero-buttons,
.hero-trust,
.hero-badge,
.browser-mockup,
.floating-badge {
    opacity: 1 !important;
    animation: none !important;
}

/* Prevent mockup content from disappearing */
.mockup-content {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}

/* Keep floating hero badges visible */
.badge-seo,
.badge-perf {
    opacity: 1 !important;
}

/* Desktop mockup scaling */
@media (min-width: 992px) {
    .browser-mockup {
        transform: scale(1.08) !important;
        transform-origin: top center;
    }
}

/* Mobile stability */
@media (max-width: 991px) {

    .hero-heading,
    .hero-description,
    .hero-buttons,
    .hero-trust,
    .hero-badge,
    .browser-mockup,
    .floating-badge,
    .mockup-content {
        opacity: 1 !important;
        animation: none !important;
    }

    .mockup-content {
        transform: none !important;
    }
}
 /* HERO - STABLE VISIBILITY FIX END */


/* MOCKUP - STABLE CONTENT VISIBILITY Start*/

.browser-mockup {
    opacity: 1 !important;
}

.mockup-content {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}

.mockup-content > div,
.mockup-content > .row > div .bg-white {
    opacity: 1 !important;
    animation: none !important;
}

@media (max-width: 991px) {
    .browser-mockup,
    .mockup-content,
    .mockup-content > div,
    .mockup-content > .row > div .bg-white {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }
}
/* MOCKUP - STABLE CONTENT VISIBILITY End*/

/* =========================================
   MOBILE NAVBAR - SMOOTH CLOSE FIX Start
   ========================================= */

@media (max-width: 991.98px) {

    .navbar.fixed-top .navbar-collapse.collapsing {
        transition: height 0.15s ease-out !important;
    }

    .navbar.fixed-top:has(.navbar-collapse.collapsing) {
        transition: none !important;
    }

    .navbar.fixed-top.scrolled:has(.navbar-collapse.collapsing) {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        transition: none !important;
    }
}
/* =========================================
   MOBILE NAVBAR - SMOOTH CLOSE FIX ENd
   ========================================= */
   @media (max-width: 991.98px) {

    .navbar.fixed-top .navbar-collapse {
        transition: none !important;
        animation: none !important;
    }

    .navbar.fixed-top .navbar-collapse.collapsing {
        height: auto !important;
        transition: none !important;
        
        /* FIX: Allow scrolling if height is too small */
        max-height: 75vh !important;
        overflow-y: auto !important;
    }

    .navbar.fixed-top .navbar-collapse.show {
        display: block !important;
        height: auto !important;
        
        /* FIX: Allow scrolling if height is too small */
        max-height: 75vh !important;
        overflow-y: auto !important;
    }

    /* Prevent expensive blur while menu is opening */
    .navbar.fixed-top .navbar-collapse,
    .navbar.fixed-top .navbar-collapse.collapsing,
    .navbar.fixed-top .navbar-collapse.show {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}