/* ═══════════════════════════════════════════════════════════════════════════
   BEXEND — Complete Stylesheet
   Dark-first design with light mode support
   ═══════════════════════════════════════════════════════════════════════════
   Table of Contents:
   1. Variables & Themes
   2. Reset & Base
   3. Navbar
   4. Hero (index.php)
   5. Buttons
   6. Sections (shared)
   7. Service Cards
   8. Solutions (index.php)
   9. Project Cards
   10. Why Us Cards
   11. Contact
   12. Footer
   13. Animations
   14. Alerts
   15. Page Hero (subpages)
   16. Solutions Page (resitve.php)
   17. CTA Block
   18. Responsive — Tablet (max 991px)
   19. Responsive — Phone (max 576px)
   20. Scrollbar
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   1. VARIABLES & THEMES
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --bg-primary:    #081522;
    --bg-secondary:  #0d1f33;
    --bg-card:       #122a44;
    --bg-card-hover: #173556;
    --text-primary:  #eef4fa;
    --text-secondary:#9fb3c8;
    --text-muted:    #6b8199;
    --accent:        #18c6dd;
    --accent-hover:  #10afc5;
    --accent-glow:   rgba(24, 198, 221, 0.15);
    --accent-glow2:  rgba(24, 198, 221, 0.05);
    --border:        rgba(255, 255, 255, 0.06);
    --border-accent: rgba(24, 198, 221, 0.25);
    --gradient-1:    linear-gradient(135deg, #1FD3E8 0%, #1A8FD6 100%);
    --gradient-2:    linear-gradient(135deg, #081522 0%, #0d1f33 100%);
    --nav-bg:        rgba(8, 21, 34, 0.85);
    --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow:   0 0 30px rgba(24, 198, 221, 0.1);
    --radius:        12px;
    --radius-sm:     8px;
    --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
    --bg-primary:    #f5f9fc;
    --bg-secondary:  #eaf1f7;
    --bg-card:       #ffffff;
    --bg-card-hover: #f5f9fc;
    --text-primary:  #0b1f3a;
    --text-secondary:#3e5670;
    --text-muted:    #6f8399;
    --accent:        #0a8598;
    --accent-hover:  #077387;
    --accent-glow:   rgba(10, 133, 152, 0.1);
    --accent-glow2:  rgba(10, 133, 152, 0.03);
    --border:        rgba(11, 31, 58, 0.1);
    --border-accent: rgba(10, 133, 152, 0.25);
    --gradient-1:    linear-gradient(135deg, #0a8598 0%, #0b3c6e 100%);
    --gradient-2:    linear-gradient(135deg, #f5f9fc 0%, #eaf1f7 100%);
    --nav-bg:        rgba(245, 249, 252, 0.9);
    --shadow-card:   0 4px 24px rgba(11, 31, 58, 0.06);
    --shadow-glow:   0 0 30px rgba(10, 133, 152, 0.08);
}


/* ═══════════════════════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

::selection {
    background: var(--accent);
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════════════════
   3. NAVBAR
   ═══════════════════════════════════════════════════════════════════════════ */
#mainNav {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    transition: all var(--transition);
    z-index: 1000;
}

#mainNav.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.brand-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.brand-accent { color: var(--accent); }

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 16px !important;
    transition: color var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--accent) !important; }

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.lang-switch {
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    padding: 4px 12px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
}

.lang-switch:hover { background: var(--accent-glow); }

.nav-cta {
    background: linear-gradient(135deg, #1FD3E8 0%, #1A8FD6 100%) !important;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 8px;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.3px;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(24, 198, 221, 0.3);
}
.nav-cta:hover {
    box-shadow: 0 4px 20px rgba(24, 198, 221, 0.5);
    transform: translateY(-1px);
    color: #fff !important;
}
body.light-mode .nav-cta {
    background: linear-gradient(135deg, #1A8FD6 0%, #0B3C6E 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 12px rgba(10, 133, 152, 0.3);
}
body.light-mode .nav-cta:hover {
    box-shadow: 0 4px 20px rgba(10, 133, 152, 0.5);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* Hamburger */
.navbar-toggler {
    border: none;
    padding: 8px;
    outline: none !important;
}

.navbar-toggler-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--transition);
}


/* ═══════════════════════════════════════════════════════════════════════════
   4. HERO (index.php)
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-2);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: heroPulse 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow2) 0%, transparent 70%);
    animation: heroPulse 12s ease-in-out infinite reverse;
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1);   opacity: 0.5; }
    50%      { transform: scale(1.2); opacity: 1; }
}

.hero-grid-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

.hero-row { min-height: 100vh; }

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: badgeFade 1s ease forwards;
}

@keyframes badgeFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 0;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.hero-typed-wrap {
    display: block;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 1.2em;
}

.typed-cursor {
    display: inline-block;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
    animation: cursorBlink 0.7s ease-in-out infinite;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* Hero Accent Line */
.hero-accent-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}

.hero-accent-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

/* Hero Text */
.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 16px;
    max-width: 550px;
    line-height: 1.6;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-cta .btn {
    padding: 14px 36px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

/* Trust Bar */
.hero-trust {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-trust-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.hero-trust-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 4px 14px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 500;
}

/* Hero Network Canvas */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#heroNetworkCanvas {
    width: 100%;
    height: 100%;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-muted);
    font-size: 1.2rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   5. BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */
.btn-accent {
    background: var(--gradient-1);
    border: none;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(24, 198, 221, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(24, 198, 221, 0.4);
    color: #fff !important;
}

.btn-outline-light {
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    background: transparent;
}

.btn-outline-light:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: var(--accent-glow);
}


/* ═══════════════════════════════════════════════════════════════════════════
   6. SECTIONS (shared)
   ═══════════════════════════════════════════════════════════════════════════ */
.section     { padding: 100px 0; }
.section-alt { background: var(--bg-secondary); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════════════════════
   7. SERVICE CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    height: 100%;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--accent);
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 16px rgba(24, 198, 221, 0.3);
}

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   8. SOLUTIONS (index.php — inline section)
   ═══════════════════════════════════════════════════════════════════════════ */
.solutions-list {
    list-style: none;
    padding: 0;
}

.solutions-list li {
    padding: 12px 0;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}

.solutions-list li:last-child { border-bottom: none; }
.solutions-list li i          { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }

.process-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--accent);
}

.process-steps {
    position: relative;
    padding-left: 40px;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 18px; top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
    position: relative;
}

.process-step:last-child { margin-bottom: 0; }

.step-number {
    position: absolute;
    left: -40px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 1;
}

.step-content         { padding-top: 4px; }
.step-content strong  { display: block; font-size: 1rem; margin-bottom: 2px; }
.step-content span    { font-size: 0.9rem; color: var(--text-secondary); }


/* ═══════════════════════════════════════════════════════════════════════════
   9. PROJECT CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    height: 100%;
    transition: all var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.project-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: var(--accent);
    transition: all var(--transition);
}

.project-card:hover .project-icon {
    background: var(--gradient-1);
    color: #fff;
}

.project-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.projects-footer {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   10. WHY US CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.why-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    height: 100%;
    transition: all var(--transition);
}

.why-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.why-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.4rem;
    color: var(--accent);
    transition: all var(--transition);
}

.why-card:hover .why-icon {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 20px rgba(24, 198, 221, 0.3);
}

.why-title  { font-weight: 700; margin-bottom: 8px; font-size: 1.1rem; }
.why-desc   { color: var(--text-secondary); font-size: 0.92rem; margin: 0; }


/* ═══════════════════════════════════════════════════════════════════════════
   11. CONTACT
   ═══════════════════════════════════════════════════════════════════════════ */
.contact-form .form-control {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.contact-form .form-control::placeholder { color: var(--text-muted); }

.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-card);
    color: var(--text-primary);
    outline: none;
}

.contact-info { width: 100%; }

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-item i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   12. FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   13. ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════════════════════
   14. ALERTS
   ═══════════════════════════════════════════════════════════════════════════ */
.alert-success {
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: var(--radius-sm);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: var(--radius-sm);
}


/* ═══════════════════════════════════════════════════════════════════════════
   15. PAGE HERO (subpages like resitve.php)
   ═══════════════════════════════════════════════════════════════════════════ */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 24px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.page-hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
}


/* ═══════════════════════════════════════════════════════════════════════════
   16. SOLUTIONS PAGE (resitve.php)
   ═══════════════════════════════════════════════════════════════════════════ */
.solution-block {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.solution-block:last-of-type { border-bottom: none; }

/* Visual column */
.solution-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.solution-number {
    position: absolute;
    font-size: clamp(6rem, 12vw, 10rem);
    font-weight: 900;
    color: var(--accent);
    opacity: 0.06;
    line-height: 1;
    z-index: 0;
    user-select: none;
    letter-spacing: -4px;
}

.solution-icon-large {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--accent);
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
}

.solution-block:hover .solution-icon-large {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transform: scale(1.05);
    background: var(--gradient-1);
    color: #fff;
}

/* Content column */
.solution-content { padding: 0 20px; }

.solution-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.solution-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.solution-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.solution-points {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 8px;
}

.solution-points li {
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.solution-points li:hover {
    border-color: var(--border-accent);
    transform: translateX(4px);
}

.solution-points li i {
    color: var(--accent);
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* Result badge */
.solution-result {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius);
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
}

.solution-result i { font-size: 1.1rem; }


/* ═══════════════════════════════════════════════════════════════════════════
   17. CTA BLOCK
   ═══════════════════════════════════════════════════════════════════════════ */
.cta-block {
    text-align: center;
    padding: 60px 40px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-1);
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 28px;
    line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════════════════════
   18. RESPONSIVE — TABLET (max 991px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

    /* Navbar */
    .navbar-collapse {
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 20px;
        margin-top: 10px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow-card);
    }

    .navbar-nav .nav-link::after { display: none; }

    /* Hero */
    .hero-row {
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero-content {
        padding-top: 90px;
    }

    .hero-cta {
        display: flex;
        gap: 12px;
    }

    .hero-cta .btn {
        flex: 1;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.88rem;
    }

    .hero-cta .btn.ml-3 { margin-left: 0 !important; }

    .hero-trust { margin-top: 28px; }

    .hero-visual {
        height: 320px;
        margin-top: 20px;
    }

    .hero-scroll-indicator { display: none; }

    /* Sections */
    .section { padding: 60px 0; }

    .contact-info { margin-top: 40px; }

    /* Solutions page */
    .solution-visual { min-height: 180px; }

    .solution-icon-large {
        width: 90px;
        height: 90px;
        font-size: 2rem;
        border-radius: 18px;
    }

    .solution-number  { font-size: 6rem; }
    .solution-content { padding: 0; }
    .solution-block   { padding: 40px 0; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   19. RESPONSIVE — PHONE (max 576px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {

    /* Hero */
    .hero-content  { padding-top: 80px; }
    .hero-title    { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.95rem; }

    .hero-desc {
        font-size: 0.88rem;
        margin-bottom: 24px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 14px;
        margin-bottom: 16px;
    }

    .hero-accent-line {
        width: 60px;
        height: 3px;
        margin: 16px 0;
    }

    .hero-cta .btn {
        padding: 11px 12px;
        font-size: 0.82rem;
    }

    .hero-trust       { margin-top: 20px; gap: 8px; }
    .hero-trust-item  { font-size: 0.72rem; padding: 3px 10px; }
    .hero-trust-label { font-size: 0.7rem; }

    .hero-visual {
        height: 260px;
        margin-top: 10px;
    }

    /* Sections */
    .section-title { font-size: 1.6rem; }

    .service-card,
    .project-card,
    .why-card { padding: 24px 20px; }

    /* Solutions page */
    .page-hero { padding: 120px 0 50px; }

    .solution-points li {
        font-size: 0.88rem;
        padding: 6px 12px;
    }

    .cta-block { padding: 40px 20px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   20. SCROLLBAR
   ═══════════════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }


/* ═══════════════════════════════════════════════════════════════════════════
   21. BEXEND — BRAND, LOGO, ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════════════ */
.fa-preload {
    position: absolute;
    opacity: 0;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    pointer-events: none;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    background: var(--accent);
    color: #041018;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #041018; outline: 3px solid #fff; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.navbar-brand { padding: 0; display: flex; align-items: center; }
.brand-logo   { height: 36px; width: auto; }
.footer-logo  { height: 40px; width: auto; }
.logo-dark    { display: block; }
.logo-light   { display: none; }
body.light-mode .logo-dark  { display: none; }
body.light-mode .logo-light { display: block; }

.konf-home {
    margin-right: 10px;
    text-decoration: none;
}
.konf-home i { margin-right: 6px; }

.navbar-nav .nav-link,
.lang-switch,
.theme-toggle,
.nav-cta { min-height: 44px; display: inline-flex; align-items: center; }
.theme-toggle { width: 44px; height: 44px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
        scroll-behavior: auto !important;
    }
    .fade-in { opacity: 1; transform: none; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   22. STATS STRIP
   ═══════════════════════════════════════════════════════════════════════════ */
.stats-strip {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 36px 0;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
    padding: 12px 8px;
}

.stat-value {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   23. SERVICE PILLARS
   ═══════════════════════════════════════════════════════════════════════════ */
.pillar { margin-bottom: 40px; }
.pillar:last-child { margin-bottom: 0; }

.pillar-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.pillar-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 120px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.pillar-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.pillar-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}

.pillar-desc {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0;
}

.pillar-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all var(--transition);
}

.pillar-link:hover {
    background: var(--accent-glow);
    color: var(--accent);
    text-decoration: none;
    transform: translateX(2px);
}

ol.process-steps { list-style: none; margin: 0; }


/* ═══════════════════════════════════════════════════════════════════════════
   24. CONTACT — LABELS, CONSENT, HONEYPOT
   ═══════════════════════════════════════════════════════════════════════════ */
.contact-info-item { align-items: flex-start; }
.contact-info-item > div { display: flex; flex-direction: column; }
.contact-info-item a { color: var(--text-primary); font-weight: 500; word-break: break-all; }
.contact-info-item a:hover { color: var(--accent); text-decoration: none; }

.contact-info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-form select.form-control {
    -webkit-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 44px;
    height: auto;
}
.contact-form select.form-control option { background: var(--bg-card); color: var(--text-primary); }

.contact-form .consent {
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.contact-form .consent .form-check-input {
    position: static;
    margin: 4px 0 0;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--accent);
}
.contact-form .consent a { color: var(--accent); text-decoration: underline; }

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    overflow: hidden;
}

.contact-form input.form-control:invalid:not(:placeholder-shown),
.contact-form textarea.form-control:invalid:not(:placeholder-shown) { border-color: rgba(239, 68, 68, 0.5); }
.contact-form input.form-control:focus:invalid:not(:placeholder-shown),
.contact-form textarea.form-control:focus:invalid:not(:placeholder-shown) { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }


/* ═══════════════════════════════════════════════════════════════════════════
   25. FOOTER — COLUMNS
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer { padding: 56px 0 24px; }

.footer-heading {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: 0.9rem; color: var(--text-secondary); }
.footer-links li i { color: var(--accent); width: 18px; margin-right: 6px; }
.footer-links a { color: var(--text-secondary); display: inline-block; padding: 4px 0; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }

.footer-legal {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.footer-tagline { font-style: normal; }

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 36px;
    padding-top: 20px;
    text-align: center;
}


/* ═══════════════════════════════════════════════════════════════════════════
   26. SUBPAGES — JUMP NAV, LEGAL TEXT, 404
   ═══════════════════════════════════════════════════════════════════════════ */
.page-hero-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.page-hero-jump a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition);
}
.page-hero-jump a i { color: var(--accent); font-size: 0.8rem; }
.page-hero-jump a:hover { border-color: var(--border-accent); color: var(--accent); text-decoration: none; }

.page-hero-compact { padding: 140px 0 40px; }

.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; font-weight: 800; margin: 36px 0 12px; letter-spacing: -0.3px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.05rem; font-weight: 700; margin: 20px 0 8px; color: var(--accent); }
.legal p, .legal li { color: var(--text-secondary); line-height: 1.8; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal code { background: var(--bg-card); padding: 2px 6px; border-radius: 4px; color: var(--text-primary); font-size: 0.9em; }

.nf-code {
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.page-hero-content.text-center { max-width: none; }


/* ═══════════════════════════════════════════════════════════════════════════
   27. RESPONSIVE ADDITIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .pillar-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .stats-strip { padding: 20px 0; }
    .navbar-nav .nav-link { padding: 10px 8px !important; }
    .navbar-nav .ml-lg-2, .navbar-nav .ml-lg-3 { margin-top: 8px; }
    .hero-section { min-height: 100dvh; }
}

@media (max-width: 576px) {
    .brand-logo { height: 30px; }
    .stat-label { font-size: 0.72rem; }
    .stat-value { font-size: 1.6rem; }
    .page-hero-jump a { font-size: 0.76rem; padding: 5px 12px; }
    .contact-info-item { padding: 12px 0; }
    .hero-trust-label { width: 100%; }
    .container { padding-left: 16px; padding-right: 16px; }
}

@supports (padding: env(safe-area-inset-left)) {
    body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* Dark mode: navy text on cyan buttons for contrast (white on cyan is too low) */
body.dark-mode .btn-accent,
body.dark-mode .btn-accent:hover,
body.dark-mode .nav-cta,
body.dark-mode .nav-cta:hover { color: #081522 !important; }

/* Phone: CTA buttons stack, never overflow */
@media (max-width: 576px) {
    .hero-cta { flex-direction: column; gap: 10px; }
    .hero-cta .btn { width: 100%; white-space: normal; flex: none; }
    .hero-title { overflow-wrap: anywhere; }
    .hero-subtitle, .hero-desc { max-width: 100%; }
    .row { margin-left: -8px; margin-right: -8px; }
    .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }
}

/* Trust bar: keep on one line on desktop */
@media (min-width: 992px) {
    .hero-trust { flex-wrap: nowrap; gap: 8px; }
    .hero-trust-item { white-space: nowrap; font-size: 0.76rem; padding: 4px 11px; }
    .hero-trust-label { white-space: nowrap; font-size: 0.72rem; }
}

/* Compact navbar between 992 and 1199 px so all items fit on one line */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-nav .nav-link { font-size: 0.78rem; padding: 8px 9px !important; white-space: nowrap; letter-spacing: 0.3px; }
    .navbar-nav .nav-link::after { left: 9px; right: 9px; }
    .nav-cta { padding: 8px 12px !important; font-size: 0.78rem !important; }
    .navbar-nav .ml-lg-3 { margin-left: 8px !important; }
    .navbar-nav .ml-lg-2 { margin-left: 6px !important; }
    .brand-logo { height: 30px; }
    .lang-switch { padding: 4px 9px !important; }
}

/* Trust badges at the bottom of the hero, centred above the stats strip */
.hero-trust-bottom { justify-content: center; margin-top: 24px; }
@media (min-width: 992px) {
    .hero-trust-bottom { position: absolute; left: 0; right: 0; bottom: 32px; margin-top: 0; z-index: 2; }
}

/* Bottom badges: blend in, but with a touch of accent so they still stand out */
.hero-trust-bottom .hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--accent-glow2);
    border: 1px solid var(--border-accent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all var(--transition);
}
.hero-trust-bottom .hero-trust-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-1);
    box-shadow: 0 0 8px var(--accent);
    flex-shrink: 0;
}
.hero-trust-bottom .hero-trust-item:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .hero-trust-bottom { margin-top: 28px; margin-bottom: 8px; }
}

