:root {
    --bg-main: #0E1117;
    --bg-surface: #171C24;
    --accent-primary: #D4AF37;
    /* Gold */
    --accent-secondary: #1E4FFF;
    /* Blue */
    --text-main: #FFFFFF;
    --text-muted: #CBD5E1;
    --border-glass: rgba(255, 255, 255, 0.15);
    --gold-glow: rgba(212, 175, 55, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 767.98px) {
    .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .row {
        margin-left: -12px;
        margin-right: -12px;
    }

    .row>* {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Utilities */
.bg-main {
    background-color: var(--bg-main);
}

.bg-surface {
    background-color: var(--bg-surface);
}

.border-glass {
    border-color: var(--border-glass) !important;
}

.text-gold {
    color: var(--accent-primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-danger {
    color: #FF453A !important;
}

/* Premium Red */
.text-success {
    color: #32D74B !important;
}

/* Premium Green */
.text-warning {
    color: #FF9F0A !important;
}

/* Premium Orange */
.bg-gold {
    background-color: var(--accent-primary) !important;
}

.bg-glass {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.fs-sm {
    font-size: 0.875rem;
}

.fs-xs {
    font-size: 0.75rem;
}

.hover-gold:hover {
    color: var(--accent-primary) !important;
    transition: color 0.2s;
}

.hover-white:hover {
    color: #fff !important;
    transition: color 0.2s;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* Logo Adaptation for Dark Theme */
.theme-logo {
    filter: brightness(0) invert(1);
    opacity: 0.95;
    object-fit: contain;
}

.display-hero {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.display-5 {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.display-6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.premium-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
}

.section-padding {
    padding: 120px 0;
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 80px 0;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Micro-interactions */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.05) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    z-index: 2;
}

/* Premium Focus States */
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
    border-color: var(--accent-primary) !important;
}

/* Header */
.premium-header {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border-top: none;
    top: -1px;
    \n margin-top: 0;
    padding: 1rem 0;
}

.premium-header.scrolled {
    background: rgba(14, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    border-top: none;
    padding: 0.5rem 0;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.lang-switcher a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 4px;
    transition: color 0.2s;
}

.lang-switcher a.active,
.lang-switcher a:hover {
    color: #fff;
}

/* Buttons */
.btn-gold-solid {
    background-color: var(--accent-primary);
    color: #000;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-gold-solid:hover {
    background-color: #f2ce5c;
    transform: translateY(-2px);
    color: #000;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-glass:hover,
.btn-outline-glass.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    background: radial-gradient(circle at 100% 0%, rgba(30, 79, 255, 0.08) 0%, var(--bg-main) 60%);
}

.hero-highlight {
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    animation: lineGrow 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1s;
}

@keyframes lineGrow {
    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

/* Hero Dashboard */
.hero-dashboard {
    background: rgba(23, 28, 36, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-dashboard:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Diagnostic Cards */
.diagnostic-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.diagnostic-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Before / After Transformation */
.transformation-container {
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    background: var(--bg-main);
    overflow: hidden;
}

.before-side {
    background: rgba(255, 0, 0, 0.02);
}

.after-side {
    background: rgba(0, 255, 0, 0.02);
}

.transition-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-glass);
    transform: translateX(-50%);
    z-index: 2;
}

.glowing-orb {
    width: 3px;
    height: 50px;
    background: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary);
    position: absolute;
    left: -1px;
    animation: orbMove 4s infinite linear;
}

@keyframes orbMove {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.chaos-list li,
.structured-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-glass);
}

.chaos-list li:last-child,
.structured-list li:last-child {
    border: none;
}

.chaos-list li {
    opacity: 0.6;
}

/* Solution Cards */
.solution-card {
    transition: all 0.4s ease;
    overflow: hidden;
}

.solution-card:hover {
    background: var(--bg-surface) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    transform: translateY(-5px);
}

/* Two Team Layout */
.custom-bullets li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    padding-left: 20px;
}

.dropdown-item {
    white-space: nowrap !important;
}

.mega-menu .dropdown-item {
    white-space: normal !important;
}

.custom-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.custom-bullets li:last-child {
    border: none;
}

/* Interactive Audit */
.audit-radio input[type="radio"] {
    display: none;
}

.audit-radio span {
    display: block;
    padding: 1rem;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.audit-radio input[type="radio"]:checked+span {
    border-color: var(--accent-primary);
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
}

.audit-radio span:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.premium-input {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border-glass) !important;
    color: #fff !important;
    padding: 1rem 1.25rem !important;
    border-radius: 8px !important;
}

.premium-input:focus {
    box-shadow: none !important;
    border-color: var(--accent-primary) !important;
}

/* Industries Cards */
.industry-card.premium {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 320px;
    border: 1px solid var(--border-glass);
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.industry-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(14, 17, 23, 0.95) 0%, rgba(14, 17, 23, 0.8) 50%, transparent 100%);
    padding: 2rem 1.5rem;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.industry-card .overlay p {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.industry-card:hover img {
    transform: scale(1.05);
}

.industry-card:hover .overlay {
    transform: translateY(0);
}

.industry-card:hover .overlay p {
    opacity: 1;
}

/* Horizontal Timeline */
.process-timeline-horizontal {
    position: relative;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-glass);
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--border-glass);
    margin-bottom: 2rem;
    transition: border-color 0.3s;
}

.step-dot.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    background: var(--accent-primary);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Dashboard UI */
.mock-dashboard {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-main) 100%);
}

.dash-card {
    transition: transform 0.3s ease;
}

.dash-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Why TAJSOFT */
.glowing-orb-large {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.15;
    animation: pulseLarge 6s infinite alternate;
}

@keyframes pulseLarge {
    0% {
        transform: scale(0.8);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

/* Footer / CTA */
.cta-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    opacity: 0.5;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-primary);
    color: #000;
}

/* Scroll Reveals */
.reveal {
    /* opacity: 0; removed for LCP */
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .display-hero {
        font-size: 3.5rem;
    }

    .display-4,
    .display-5 {
        font-size: 2.5rem;
    }

    .hero-dashboard {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .display-hero {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .transformation-container .before-side,
    .transformation-container .after-side {
        padding: 2rem 1.5rem !important;
    }

    .transformation-container {
        text-align: left;
    }

    .timeline-step {
        min-width: 280px;
    }

    .two-team-row::before {
        display: none;
    }
}

/* =========================================================================
   INTERNAL PAGES & MEGA MENU EXTENSIONS 
   ========================================================================= */

/* Mega Menu & Dropdowns */
.navbar .dropdown-menu {
    background: rgba(23, 28, 36, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    margin-top: 0;
    transition: all 0.3s ease;
}

.navbar .dropdown-menu.mega-menu {
    padding: 2rem;
    min-width: 650px;
}

@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeUp 0.3s ease;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu .dropdown-header {
    color: var(--accent-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 0 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.dropdown-menu .dropdown-item {
    color: var(--text-muted);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-radius: 6px;
    background: transparent !important;
    white-space: normal;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    color: #fff;
    padding-left: 8px;
    background: rgba(255, 255, 255, 0.05) !important;
}

@media (max-width: 991px) {
    .navbar .dropdown-menu {
        /* Размер и положение */
        min-width: 150px;
        width: max-content;

        /* Читаемый glass background */
        background: rgba(15, 20, 32, 0.92);

        /* Рамка */
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;

        /* Правильные внутренние отступы */
        padding: 6px;

        /* Glass effect */
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        /* Отделяем dropdown от фона */
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);

        z-index: 9999;
    }

    .navbar .dropdown-menu .dropdown-item {
        padding: 10px 14px;
        color: #fff;
        white-space: nowrap;
        border-radius: 8px;
        line-height: 1.3;
    }

    .navbar .dropdown-menu .dropdown-item:hover,
    .navbar .dropdown-menu .dropdown-item:focus {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }
}

/* Internal Page Hero */
.internal-hero {
    padding: 160px 0 80px;
    background: radial-gradient(circle at 50% 0%, rgba(30, 79, 255, 0.1) 0%, var(--bg-main) 70%);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: var(--accent-primary);
}

.breadcrumb-item.active {
    color: #fff;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
    padding: 0;
}

/* Transformation Diagram (Vertical Flow) */
.transformation-flow {
    position: relative;
}

.transformation-flow-step {
    position: relative;
    z-index: 2;
}

.transformation-flow-connector {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--border-glass), var(--accent-primary));
    margin: 0 auto;
    position: relative;
}

.transformation-flow-connector::after {
    content: '↓';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* Schema Hidden */
.schema-hidden {
    display: none;
}

/* Input Placeholders */
::placeholder,
::-webkit-input-placeholder,
:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
}

.form-control::placeholder,
.form-select::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
}

/* Dashboard Widget Chart Bars */
.chart-bars .bar {
    width: 12%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
}

/* Step Animations */
@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-step,
.audit-step {
    opacity: 0;
}

.booking-step.active,
.audit-step.active {
    animation: fadeInStep 0.4s ease forwards;
}

 / *   A n c h o r   O f f s e t   f o r   F i x e d   H e a d e r   * /   [ i d ]    {
       s c r o l l - m a r g i n - t o p :    1 2 0 p x ;
       
}

         . b r e a d c r u m b    {
       a l i g n - i t e m s :    c e n t e r ;
       
}

   . b r e a d c r u m b - i t e m    {
       d i s p l a y :    f l e x ;
       a l i g n - i t e m s :    c e n t e r ;
       
}

   . b r e a d c r u m b - i t e m   +   . b r e a d c r u m b - i t e m : : b e f o r e    {
       d i s p l a y :    f l e x ;
       a l i g n - i t e m s :    c e n t e r ;
       m a r g i n - t o p :    2 p x ;
       
}

       
/* ============================================
   ADMIN FORM STYLES - Dark Input Fields
   ============================================ */

.form-control-dark,
.form-select-dark {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control-dark:focus,
.form-select-dark:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--gold, #C9A84C) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15) !important;
    color: #fff !important;
    outline: none;
}

.form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-select-dark option {
    background: #1a1f2e;
    color: #fff;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}


/* Tajik System Font Fallback */
html[lang="tg"],
html[lang="tj"] {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ========================================
   TEAM SLIDER — Complete Styles v4
   ======================================== */

/* Slider Track */
/* overflow:visible so hover translateY(-8px) is not clipped */
.team-slider-track {
    overflow: visible;
    width: 100%;
}

/* Animated Page Grid */
.team-page-grid {
    display: grid;
    gap: 20px;
    animation: teamFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes teamFadeIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.team-slide {
    min-height: 1px;
}

/* === Card === */
.team-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(26, 26, 34, 1) 0%, rgba(16, 16, 22, 1) 100%);
    overflow: visible;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    min-height: 240px;
    padding: 0 0 20px 0;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(234, 182, 49, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(234, 182, 49, 0.06);
}

/* === Photo Header Band === */
.team-card-photo {
    width: 100%;
    padding: 24px 0 16px;
    position: relative;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, rgba(234, 182, 49, 0.10) 0%, rgba(234, 182, 49, 0.02) 60%, transparent 100%);
    margin-bottom: 0;
}

/* Subtle top line accent */
.team-card-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(234, 182, 49, 0.5), transparent);
    border-radius: 2px;
}

/* === Avatar === */
.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2.5px solid rgba(234, 182, 49, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(234, 182, 49, 0.06);
    display: block;
    margin: 0 auto;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.team-card:hover .team-avatar {
    border-color: rgba(234, 182, 49, 0.85);
    box-shadow: 0 6px 28px rgba(234, 182, 49, 0.28), 0 0 0 5px rgba(234, 182, 49, 0.1);
    transform: scale(1.05);
}

/* === Avatar Placeholder === */
.team-avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 2.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.25);
}

/* Divider line between photo and text */
.team-card-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(234, 182, 49, 0.6), transparent);
    border-radius: 2px;
    margin: 14px auto 12px;
}

/* === Text === */
.team-card-body {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    padding: 0 16px;
}

.team-card-name {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.team-card-role {
    color: #eab631;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
    opacity: 0.85;
}

/* === Footer icons === */
.team-card-footer {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 32px);
}

/* === Nav Buttons === */
.team-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(14, 14, 18, 0.92);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.team-slider-btn:hover:not(:disabled) {
    background: #eab631;
    border-color: #eab631;
    color: #111;
    box-shadow: 0 6px 24px rgba(234, 182, 49, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.team-slider-btn:disabled {
    opacity: 0.18;
    cursor: not-allowed;
}

.team-slider-prev {
    left: 0;
}

.team-slider-next {
    right: 0;
}

/* === Dots === */
.team-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.team-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    padding: 0;
    cursor: pointer;
    transition: all 0.35s ease;
}

.team-dot.active {
    background: #eab631;
    width: 26px;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(234, 182, 49, 0.55);
}

/* Ensure slider wrapper does not clip hover effects */
#leadershipSection .position-relative {
    overflow: visible !important;
}

/* === Team Social Buttons — Gold Theme === */
.team-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* LinkedIn — dark bg, blue accent → gold on hover */
.team-social-linkedin {
    background: rgba(10, 102, 194, 0.12);
    border: 1.5px solid rgba(10, 102, 194, 0.3);
    color: rgba(255, 255, 255, 0.65);
}

.team-social-linkedin:hover {
    background: #eab631;
    border-color: #eab631;
    color: #111;
    transform: scale(1.18) translateY(-2px);
    box-shadow: 0 6px 18px rgba(234, 182, 49, 0.45);
}

/* Email — dark bg, subtle → gold on hover */
.team-social-email {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
}

.team-social-email:hover {
    background: #eab631;
    border-color: #eab631;
    color: #111;
    transform: scale(1.18) translateY(-2px);
    box-shadow: 0 6px 18px rgba(234, 182, 49, 0.45);
}

/* ========================================
   TIMELINE SECTION
   ======================================== */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, rgba(234, 182, 49, 0.1), rgba(234, 182, 49, 0.6), rgba(234, 182, 49, 0.1));
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 25px;
    top: 35px;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #101016;
    border: 3px solid #eab631;
    box-shadow: 0 0 15px rgba(234, 182, 49, 0.4);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.timeline-item:hover .timeline-dot {
    background: #eab631;
    transform: translateX(-50%) scale(1.4);
    box-shadow: 0 0 25px rgba(234, 182, 49, 0.8), 0 0 0 5px rgba(234, 182, 49, 0.15);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.35s ease;
    position: relative;
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(234, 182, 49, 0.3);
    transform: translateX(10px);
}

.timeline-year {
    color: #eab631;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1;
    opacity: 0.95;
    letter-spacing: -1px;
}

.timeline-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .timeline-container::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 60px;
    }

    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-dot {
        left: 100%;
        top: 40px;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 0;
    }

    .timeline-item:hover .timeline-content {
        transform: translateX(-10px);
        box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.3);
    }

    .timeline-item:nth-child(even):hover .timeline-content {
        transform: translateX(10px);
        box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.3);
    }

    .timeline-content {
        text-align: right;
    }

    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }
}

/* ─── Mega Menu 4 Columns ─── */
.mega-menu-4col {
    min-width: 880px !important;
}

@media (max-width: 1200px) {
    .mega-menu-4col {
        min-width: 740px !important;
    }
}

@media (max-width: 991px) {
    .mega-menu-4col {
        min-width: auto !important;
    }
}

.mega-col-divider {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.mega-col-header {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    padding: 0 0.75rem;
}

.mega-col-desc {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.mega-col-links .dropdown-item {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem !important;
    white-space: normal;
}

.mega-col-links .dropdown-item:hover {
    padding: 0.4rem 0.75rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.mega-col-links .dropdown-item.active-page {
    color: var(--accent-primary);
    background: rgba(212, 175, 55, 0.08) !important;
    border-radius: 6px;
}

/* =========================================================================
   MOBILE CONTACT WIDGET
   ========================================================================= */
.mobile-contact-widget {
    display: none;
}

@media (max-width: 768px) {
    .mobile-contact-widget {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(14, 17, 23, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-glass);
        z-index: 1040;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    }

    .mobile-contact-container {
        display: grid;
        gap: 12px;
    }

    .mobile-contact-container.two-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .mobile-contact-container.one-button {
        grid-template-columns: 1fr;
    }

    .mobile-contact-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid var(--border-glass);
    }

    .mobile-contact-btn svg {
        width: 20px;
        height: 20px;
    }

    .btn-whatsapp {
        background: rgba(37, 211, 102, 0.1);
        color: #25D366;
        border-color: rgba(37, 211, 102, 0.2);
    }

    .btn-telegram {
        background: rgba(42, 171, 238, 0.1);
        color: #2AABEE;
        border-color: rgba(42, 171, 238, 0.2);
    }

    .btn-whatsapp:active {
        background: rgba(37, 211, 102, 0.2);
        color: #fff;
    }

    .btn-telegram:active {
        background: rgba(42, 171, 238, 0.2);
        color: #fff;
    }

    body.has-mobile-contact-widget {
        padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    }
}

/* =========================================================================
   INDUSTRY SECTION MOBILE ADAPTATION
   ========================================================================= */
@media (max-width: 768px) {
    .industry-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .industry-title {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.4;
        margin-bottom: 1.5rem !important;
    }

    .industry-links-wrapper {
        opacity: 1 !important;
        gap: 10px !important;
    }

    .industry-links-wrapper>.d-flex {
        gap: 10px !important;
    }

    .industry-sep {
        display: none !important;
    }

    .industry-item {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border-glass);
        border-radius: 8px;
        padding: 8px 16px;
        font-size: 0.85rem;
        transition: all 0.2s ease;
        display: inline-block;
    }

    .industry-item.text-gold {
        background: rgba(212, 175, 55, 0.08);
        border-color: rgba(212, 175, 55, 0.3);
    }
}

/* =========================================================================
   SECURITY & HONEYPOT
   ========================================================================= */
.form-honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}



/* Localization Responsive Table */
@media (max-width: 767.98px) {
    #localizationTableBody tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid var(--border-glass) !important;
        background: var(--bg-surface);
        border-radius: 0.5rem;
        padding: 1rem;
    }

    #localizationTableBody td {
        display: block;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 0.75rem;
    }

    #localizationTableBody td:first-child {
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--border-glass) !important;
        padding-bottom: 0.75rem !important;
    }

    #localizationTableBody td:nth-child(2)::before {
        content: 'Русский (RU)';
        display: block;
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-bottom: 0.25rem;
    }

    #localizationTableBody td:nth-child(3)::before {
        content: 'English (EN)';
        display: block;
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-bottom: 0.25rem;
    }

    #localizationTableBody td:nth-child(4)::before {
        content: 'Тоҷикӣ (TJ)';
        display: block;
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-bottom: 0.25rem;
    }

    #localizationTableBody td:last-child {
        margin-bottom: 0;
    }

    #section-localization table thead {
        display: none !important;
    }
}


/* =========================================================================
   MOBILE MENU POLISH
   ========================================================================= */
@media (max-width: 991.98px) {

    /* 1. FIX ACCORDION ARROWS & 2. CHEVRON QUALITY */
    #mobileMenu .accordion-button::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.65)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
        transition: transform 0.25s ease, background-image 0.2s ease !important;
    }

    #mobileMenu .accordion-button:not(.collapsed)::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
        transform: rotate(-180deg) !important;
    }

    /* 3. ALIGNMENT & 4. TOP-LEVEL MOBILE MENU ROWS */
    #mobileMenu .accordion-item,
    #mobileMenu>.offcanvas-body>a.border-bottom {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    #mobileMenu .accordion-button,
    #mobileMenu>.offcanvas-body>a.text-white:not(.btn) {
        min-height: 56px;
        padding: 16px 16px !important;
        display: flex;
        align-items: center;
        font-weight: 600 !important;
        font-size: 1.1rem !important;
        box-shadow: none !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        line-height: 1.4 !important;
    }

    #mobileMenu .accordion-button::after {
        margin-left: auto !important;
        position: static !important;
    }

    /* 5. DIVIDERS & 6. OPEN ACCORDION SPACING */
    #mobileMenu .accordion-body {
        padding: 12px 16px 20px 16px !important;
    }

    #mobileMenu .accordion-body h6 {
        font-size: 11.5px !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
        color: rgba(255, 255, 255, 0.65) !important;
        margin-top: 20px !important;
        margin-bottom: 8px !important;
    }

    #mobileMenu .accordion-body h6:first-child {
        margin-top: 4px !important;
    }

    /* 7. SUBMENU LINKS & 8. SUBMENU INDENTATION */
    #mobileMenu .accordion-body a {
        font-size: 15px !important;
        color: rgba(255, 255, 255, 0.92) !important;
        padding: 8px 0 !important;
        display: block;
        margin-left: 12px !important;
    }

    #mobileMenu .accordion-body a.text-gold {
        color: var(--accent-primary) !important;
    }

    /* 9. PRODUCTS ITEM */
    #mobileMenu>.offcanvas-body>a.text-white:not(.btn) {
        height: auto !important;
    }

    /* 10. CTA — BUSINESS AUDIT & 11. BOTTOM AREA */
    #mobileMenu .btn-gold-solid {
        margin-top: 24px !important;
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: #0E1117 !important;
    }

    /* 12. MOBILE DRAWER WIDTH */
    #mobileMenu {
        width: min(340px, calc(100vw - 40px)) !important;
    }

    /* 13. HEADER INSIDE DRAWER */
    #mobileMenu .offcanvas-header {
        min-height: 64px;
        padding-left: 20px;
        padding-right: 20px;
    }

    #mobileMenu .btn-close {
        opacity: 0.7;
    }

    /* 14. SCROLL BEHAVIOR */
    #mobileMenu .offcanvas-body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 40px !important;
    }
}

/* Service Chips Visual Polish */
.service-chips-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 14px;
    row-gap: 12px;
}

.service-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    white-space: normal;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    font-size: 0.95rem;
}

.service-chip:hover {
    border-color: var(--gold);
    color: #ffffff;
    background: rgba(212, 175, 55, 0.05);
}

@media (max-width: 768px) {
    .service-chip {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* Business System 3-Column Layout */
.business-system-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.1fr) minmax(300px, 1fr);
    gap: 40px;
    align-items: center;
    width: 100%;
}

.business-system-col.left-card {
    order: 1;
}

.business-system-col.center-card {
    order: 2;
}

.business-system-col.right-card {
    order: 3;
}

/* SVG Lines specific fix for grid */
.business-system-grid .connection-lines {
    width: calc(100% + 40px);
    /* adjust for gap */
}

@media (max-width: 1199px) {
    .business-system-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 50px;
        column-gap: 30px;
    }

    .business-system-col.left-card {
        order: 1;
    }

    .business-system-col.right-card {
        order: 2;
    }

    .business-system-col.center-card {
        order: 3;
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .business-system-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .business-system-col.left-card {
        order: 1;
    }

    .business-system-col.center-card {
        order: 2;
        grid-column: auto;
    }

    .business-system-col.right-card {
        order: 3;
    }
}

/* ---------------------------------------------------
   Software Development Hero - Shared Localization Spacing 
   --------------------------------------------------- */
.software-hero .software-hero-breadcrumbs {
    margin-bottom: 24px;
}

.software-hero .software-hero-label {
    margin-bottom: 22px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 0.55rem 1.1rem;
    line-height: 1.4;
    white-space: normal;
    max-width: 100%;
    display: inline-block;
}

.software-hero .software-hero-title {
    margin-bottom: 24px;
}

.software-hero .software-hero-description {
    margin-bottom: 48px;
}

/* Ensure left alignment remains rigid for the whole column */
.software-hero .col-lg-7 {
    text-align: left;
}

/* Tablet adjustments if necessary to preserve spacing visually */
@media (max-width: 991.98px) {
    .software-hero .software-hero-breadcrumbs {
        margin-bottom: 20px;
    }

    .software-hero .software-hero-label {
        margin-bottom: 18px;
        font-size: 0.65rem;
    }

    .software-hero .software-hero-title {
        margin-bottom: 20px;
    }

    .software-hero .software-hero-description {
        margin-bottom: 40px;
    }
}

/* Contact Phone Link Styles */
.contact-phone-link {
    color: inherit;
    text-decoration: none;
    font: inherit;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-phone-link:hover {
    color: var(--accent-primary) !important;
    text-decoration: underline;
    text-decoration-color: var(--accent-primary);
}

.contact-phone-link:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}