/*
Theme Name: Technoleet
Theme URI: https://technoleet.dev
Description: Technoleet's product site: a 3D walk through a glass software office, with every product, stack and support link managed from the Technoleet dashboard menu.
Author: Technoleet
Author URI: https://technoleet.dev
Version: 3.1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: technoleet
*/

:root {
    --primary: #0066FF;
    --primary-light: #388EFF;
    --primary-dark: #0048CE;
    --accent-cyan: #00D2FF;
    --accent-emerald: #10B981;
    --accent-purple: #8B5CF6;
    --text-heading: #0F172A;
    --text-body: #475569;
    --bg-light: #ffffff;
    --bg-page: #F8FAFC;
    
    /* Gradients */
    --gradient-text: linear-gradient(135deg, #0066FF 0%, #00D2FF 50%, #8B5CF6 100%);
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D2FF 100%);
    --gradient-dark: linear-gradient(135deg, #060C19 0%, #0F172A 100%);
    
    /* Node Colors */
    --node-blue: #0066FF;
    --node-orange: #FF7A00;
    --node-green: #10B981;
    --node-purple: #8B5CF6;
    --node-red: #F43F5E;
    --node-teal: #06B6D4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Text for screen readers only (WordPress convention). */
.screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img,
.logo .custom-logo {
    display: block;
    height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Desktop: logo left, menu centred, CTA right. */
@media (min-width: 1025px) {
    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        column-gap: 32px;
    }
    .nav-container > .logo { grid-column: 1; grid-row: 1; justify-self: start; }
    .nav-container > .nav-menu { display: contents; }
    .nav-container .nav-links { grid-column: 2; grid-row: 1; justify-content: center; }
    .nav-container .nav-actions { grid-column: 3; grid-row: 1; justify-self: end; }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    justify-content: flex-end;
}

ul.nav-links,
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item,
ul.nav-links > li,
.nav-links > li {
    position: relative;
    padding: 8px 0;
    list-style: none;
    margin: 0;
}

.nav-links a.nav-link,
ul.nav-links li a,
.nav-links li a {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a.nav-link::after,
ul.nav-links li a::after,
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a.nav-link:hover,
ul.nav-links li a:hover,
.nav-links li a:hover {
    color: var(--primary);
}

.nav-links a.nav-link:hover::after,
ul.nav-links li a:hover::after,
.nav-links li a:hover::after {
    width: 100%;
}

/* Submenu dropdowns for WordPress native menu */
.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}
.animate-marquee:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

ul.sub-menu {
    position: absolute;
    top: 100%;
    left: -12px;
    width: 230px;
    background: #ffffff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    list-style: none;
}

li:hover > ul.sub-menu,
.nav-item:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

ul.sub-menu li {
    width: 100%;
    padding: 0;
    margin: 0;
}

ul.sub-menu li a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-heading);
}

ul.sub-menu li a:hover {
    background: #f0f7ff;
    color: var(--primary);
}

/* Dropdowns & Mega Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -12px;
    width: 250px;
    background: #ffffff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
}

.nav-item:hover > .dropdown-menu,
li:hover > .dropdown-menu,
li.menu-item-has-children:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-heading);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f0f7ff;
    color: var(--primary);
}

/* Mega Menu */
.megamenu {
    position: absolute;
    top: 100%;
    left: -150px;
    width: 960px;
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 30px 70px rgba(16, 24, 40, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
}

.nav-item:hover > .megamenu,
li:hover > .megamenu,
li.menu-item-has-children:hover > .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.text-link {
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
}
.nav-toggle-label {
    display: none;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-round {
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 24px;
    color: var(--primary);
}
.btn-outline-round:hover {
    border-color: var(--primary);
    background-color: rgba(0, 126, 221, 0.05);
}

.btn-primary-round {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50px;
    padding: 10px 24px;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 126, 221, 0.3);
}
.btn-primary-round:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 126, 221, 0.4);
}

.btn-primary-large {
    background: linear-gradient(135deg, #0380de, #33b794);
    color: white;
    border-radius: 50px;
    padding: 16px 36px;
    font-size: 16px;
    border: none;
    box-shadow: 0 8px 20px rgba(51, 183, 148, 0.3);
}
.btn-primary-large:hover {
    background: linear-gradient(135deg, #026bb8, #2a9b7c);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(51, 183, 148, 0.4);
}

.btn-outline-large {
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    padding: 16px 36px;
    font-size: 16px;
    color: var(--text-heading);
}
.btn-outline-large:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(0,126,221,0.02);
}

/* Hero Section */
.hero {
    padding: 90px 0;
    background: 
        radial-gradient(circle at 85% 20%, rgba(0, 102, 255, 0.08) 0%, rgba(0, 210, 255, 0.04) 40%, transparent 70%),
        radial-gradient(circle at 10% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
        #ffffff;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-cursor {
    display: inline-block;
    margin-left: 4px;
    font-weight: 700;
    color: #007edd;
    animation: blink 0.8s infinite;
}

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

.hero-content p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-body);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-illustration {
    flex: 1.25;
    position: relative;
    min-height: 560px;
    width: 100%;
    max-width: 640px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-hub {
    background: white;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    z-index: 10;
    position: relative;
}

.center-hub p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 4px;
}

.center-hub strong {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-heading);
}

.center-hub span {
    color: var(--primary);
    font-weight: 500;
}

.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.orbit-line {
    fill: none;
    stroke: rgba(0, 126, 221, 0.15);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
}

.floating-node {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    z-index: 5;
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.floating-node:hover {
    transform: scale(1.1) !important;
    cursor: pointer;
}

.bg-blue { background: var(--node-blue); box-shadow: 0 10px 25px rgba(0, 145, 255, 0.4); }
.bg-orange { background: var(--node-orange); box-shadow: 0 10px 25px rgba(254, 131, 43, 0.4); }
.bg-green { background: var(--node-green); box-shadow: 0 10px 25px rgba(36, 177, 142, 0.4); }
.bg-purple { background: var(--node-purple); box-shadow: 0 10px 25px rgba(122, 79, 250, 0.4); }
.bg-red { background: var(--node-red); box-shadow: 0 10px 25px rgba(230, 27, 115, 0.4); }
.bg-teal { background: var(--node-teal); box-shadow: 0 10px 25px rgba(29, 184, 170, 0.4); }

.node-1 { top: 22%; left: 18%; animation-delay: 0s; }
.node-2 { top: 55%; left: 12%; animation-delay: 1s; }
.node-3 { top: 80%; left: 25%; animation-delay: 2s; }
.node-4 { top: 12%; left: 45%; animation-delay: 1.5s; }
.node-5 { top: 20%; right: 20%; animation-delay: 0.5s; }
.node-6 { top: 10%; right: 2%; animation-delay: 2.5s; }
.node-7 { top: 45%; right: 8%; animation-delay: 1.2s; }
.node-8 { top: 70%; right: 18%; animation-delay: 0.3s; }
.node-9 { top: 85%; right: 5%; animation-delay: 2.1s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 1100px) {
    .nav-menu { gap: 20px; }
    .nav-links { gap: 16px; }
    .hero-content h1 { font-size: 54px; }
    .center-hub { width: 200px; height: 200px; }
    .floating-node { width: 50px; height: 50px; }
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    .hero-content { max-width: 100%; }
    .hero-content h1 { font-size: 48px; }
    .hero-content p { margin: 0 auto 32px auto; }
    .hero-buttons { justify-content: center; }
    .hero-illustration {
        width: 100%;
        max-width: 600px;
        margin-top: 40px;
    }
    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 30px;
        height: 21px;
    }
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--text-heading);
        height: 3px;
        width: 100%;
        border-radius: 2px;
        position: relative;
        transition: all 0.3s ease;
    }
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }
    .nav-toggle-label span::before { bottom: 9px; }
    .nav-toggle-label span::after { top: 9px; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        background: #ffffff;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border-bottom: 1px solid #e5e7eb;
        align-items: stretch;
        gap: 20px;
    }
    .nav-toggle:checked ~ .nav-menu { display: flex; }
    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: left;
        gap: 12px;
        margin-bottom: 20px;
        align-items: stretch;
    }
    .nav-item { width: 100%; padding: 4px 0; }
    .nav-links a.nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 10px 14px;
        border-radius: 12px;
        background: #f8fafc;
        border: 1px solid #f1f5f9;
        font-size: 15px;
    }
    .dropdown-menu,
    .megamenu {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        top: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: 1px solid #f1f5f9 !important;
        background: #ffffff !important;
        padding: 16px !important;
        margin-top: 8px !important;
        border-radius: 16px !important;
        display: none;
    }
    .nav-item.mobile-expanded > .dropdown-menu,
    .nav-item.mobile-expanded > .megamenu,
    .nav-item:hover > .dropdown-menu,
    .nav-item:hover > .megamenu {
        display: block !important;
    }
    .megamenu .grid-cols-12 {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .megamenu .col-span-4 {
        width: 100%;
        border-right: none !important;
        padding-right: 0 !important;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 12px;
    }
    .megamenu .col-span-4:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .nav-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 { font-size: 36px; }
    .hero-content p { font-size: 16px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-primary-large, .btn-outline-large { width: 100%; }
    .hero-illustration { height: 400px; }
    .center-hub { width: 150px; height: 150px; }
    .center-hub strong { font-size: 18px; }
    .floating-node { width: 40px; height: 40px; }
    .floating-node svg { width: 20px; height: 20px; }
}

/* Stat & Metrics */
@keyframes dataPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.08); }
}

@keyframes lineGlow {
    0% { stroke-dashoffset: 200; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -200; }
}

@keyframes flowBar {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-data-pulse { animation: dataPulse 4s ease-in-out infinite; }
.animate-flow-bar {
    background-size: 200% 200%;
    animation: flowBar 3s ease infinite;
}

.stat-card-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 0 30px rgba(0, 126, 221, 0.12);
}

.dark-stat-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-stat-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 45px rgba(0, 102, 255, 0.08);
}

.counter-val { font-variant-numeric: tabular-nums; }

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.animate-marquee:hover { animation-play-state: paused; }

.tech-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 126, 221, 0.08);
    border-color: rgba(0, 126, 221, 0.2);
}

@keyframes pulseWave {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.orbit-pulse-ring { animation: pulseWave 3s cubic-bezier(0, 0.2, 0.8, 1) infinite; }

.tech-card-item { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.tech-card-item.hidden-card {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    pointer-events: none;
    display: none !important;
}

.code-tab-btn.active-code-tab {
    background-color: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

#stats {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0F172A !important;
}
#stats h2 { color: #0F172A !important; }
#stats p { color: #64748b !important; }
#stats .stat-card-glass {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#stats .stat-card-glass:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: rgba(0, 102, 255, 0.35) !important;
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 102, 255, 0.12);
}
#stats .counter-val {
    background: linear-gradient(135deg, #0F172A 0%, #0066FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
#stats .time-tab-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}
#stats .time-tab-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}
#stats .time-tab-btn.active-time-tab {
    background: linear-gradient(135deg, #0066FF, #007EDD);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(16, 24, 40, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    border-radius: 32px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: scale(0.92) translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 32px;
}
.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
.modal-close-btn:hover {
    background: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #007EDD;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 126, 221, 0.4);
    border: none;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#back-to-top.show-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#back-to-top:hover {
    background: #0060ad;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 126, 221, 0.5);
}

#toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    background: #101828;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 600;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.nav-links a.nav-link.active-scroll {
    color: var(--primary);
}
.nav-links a.nav-link.active-scroll::after {
    width: 100%;
}

.typing-cursor {
    color: var(--primary);
    font-weight: 800;
    margin-left: 2px;
    animation: blinkCursor 0.7s infinite;
}

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

/* ==========================================================================
   Mobile & Tablet Responsive Navigation (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .nav-container { min-height: 64px; }
    .logo-img,
    .logo .custom-logo { height: 48px; }

    .nav-toggle-label {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: #f1f5f9;
        cursor: pointer;
        z-index: 110;
        position: relative;
        transition: all 0.2s ease;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: #0f172a;
        height: 2.5px;
        width: 22px;
        border-radius: 2px;
        position: relative;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }

    .nav-toggle-label span::before {
        top: -7px;
    }

    .nav-toggle-label span::after {
        bottom: -7px;
    }

    /* Animate Hamburger into X */
    .nav-toggle:checked ~ .nav-toggle-label span,
    .navbar.menu-open .nav-toggle-label span {
        background: transparent !important;
    }
    .nav-toggle:checked ~ .nav-toggle-label span::before,
    .navbar.menu-open .nav-toggle-label span::before {
        top: 0 !important;
        transform: rotate(45deg);
        background: #0066ff !important;
    }
    .nav-toggle:checked ~ .nav-toggle-label span::after,
    .navbar.menu-open .nav-toggle-label span::after {
        bottom: 0 !important;
        transform: rotate(-45deg);
        background: #0066ff !important;
    }

    /* Mobile Menu Drawer */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px 20px 32px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
        border-bottom: 1px solid #e2e8f0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overscroll-behavior: contain;
        display: none !important;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        z-index: 9999;
    }

    .nav-toggle:checked ~ .nav-menu,
    .navbar.menu-open .nav-menu {
        display: flex !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: left;
        gap: 8px;
        margin-bottom: 16px;
        align-items: stretch;
    }

    .nav-item {
        width: 100%;
        padding: 0;
        position: relative;
    }

    .nav-links a.nav-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-radius: 14px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        font-size: 15px;
        font-weight: 700;
        color: var(--text-heading);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .nav-links a.nav-link:hover,
    .nav-item.open > a.nav-link,
    .nav-item.mobile-expanded > a.nav-link {
        background: #f0f7ff;
        border-color: #bfdbfe;
        color: var(--primary);
    }

    /* Chevron rotation */
    .nav-links a.nav-link i,
    .nav-links a.nav-link [data-icon="chevron-down"] {
        transition: transform 0.3s ease;
        margin-left: auto;
    }

    .nav-item.open > a.nav-link i,
    .nav-item.open > a.nav-link [data-icon="chevron-down"],
    .nav-item.mobile-expanded > a.nav-link i,
    .nav-item.mobile-expanded > a.nav-link [data-icon="chevron-down"] {
        transform: rotate(180deg);
        color: var(--primary);
    }

    /* Mobile Submenu & Mega Menu Accordion */
    ul.sub-menu,
    .dropdown-menu,
    .megamenu {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        top: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        padding: 12px !important;
        margin-top: 6px !important;
        border-radius: 16px !important;
        display: none !important;
    }

    .nav-item.open > ul.sub-menu,
    .nav-item.open > .dropdown-menu,
    .nav-item.open > .megamenu,
    .nav-item.mobile-expanded > ul.sub-menu,
    .nav-item.mobile-expanded > .dropdown-menu,
    .nav-item.mobile-expanded > .megamenu {
        display: block !important;
    }

    /* Convert Mega Menu Grid to Clean Vertical Stack on Mobile */
    .megamenu .grid,
    .megamenu .grid-cols-12 {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .megamenu .col-span-4 {
        border-right: none !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    .dropdown-item {
        padding: 10px 12px !important;
        background: #f8fafc !important;
        margin-bottom: 6px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
    }

    .dropdown-item:last-child {
        margin-bottom: 0 !important;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding-top: 16px;
        border-top: 1px solid #e2e8f0;
    }

    .nav-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* ==========================================================================
   Eye-Catching Scroll Reveal, Card Physics & Micro-Animations
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.stat-card-glass,
.service-card,
.process-step-card,
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: opacity, transform;
}

.is-revealed-child,
.is-revealed .stat-card-glass,
.is-revealed .service-card,
.is-revealed .process-step-card,
.is-revealed .testimonial-card {
    opacity: 1;
    transform: translateY(0);
}

/* Radar Pulse Ping */
@keyframes radarPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.radar-ping {
    animation: radarPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* Ambient Floating Keyframes */
@keyframes ambientFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(16px, -20px) scale(1.05);
    }
}

.animate-float-slow {
    animation: ambientFloat 14s ease-in-out infinite alternate;
}

/* Button & Link Shimmer Light Sweep */
.btn-shimmer,
.btn-primary,
.explore-btn {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after,
.btn-primary::after,
.explore-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: rotate(25deg);
    transition: none;
    pointer-events: none;
}

.btn-shimmer:hover::after,
.btn-primary:hover::after,
.explore-btn:hover::after {
    left: 220%;
    transition: left 0.75s ease-in-out;
}


/* Sprite icons (inc/icons.php). Size utilities (w-4 h-4 …) override the default. */
.tl-icon {
	display: inline-block;
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	vertical-align: middle;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Products mega-menu (inc/navigation.php) */
.tl-mega { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.tl-mega__icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.dropdown-item:hover .tl-mega__icon { background: var(--c); color: #fff; }
.tl-mega__all { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 13px; color: var(--primary); text-decoration: none; }

/* Footer Technoleet Lab box (only link to the services site). */
.tl-lab-box { border: 1px solid rgba(192, 38, 211, .3); border-radius: 14px; padding: 16px; background: rgba(192, 38, 211, .05); }
.tl-lab-box__link { display: inline-block; margin-top: 8px; font-weight: 700; color: #a21caf; text-decoration: none; }
.tl-lab-box__link:hover { text-decoration: underline; }
footer .menu-item a { color: inherit; text-decoration: none; }
footer .menu-item a:hover { color: var(--primary); }

/* ==========================================================================
   Product catalog: platform badges, tabs and cards (inc/catalog.php)
   ========================================================================== */
.tl-plat { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tl-plat li { min-width: 0; max-width: 100%; }
.tl-plat__item { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid #e2e8f0; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #334155; font-size: 12px; font-weight: 700; line-height: 1.3; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; transition: border-color .2s, color .2s; }
.tl-plat__item:hover, .tl-plat__item:focus-visible { border-color: var(--primary); color: var(--primary); }
.tl-plat__logo { width: 14px; height: 14px; flex-shrink: 0; object-fit: contain; }

.tl-catalog { padding: 128px 0 96px; background: linear-gradient(180deg, #f8fafc 0%, #fff 320px); min-height: 70vh; }
.tl-catalog__inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.tl-catalog__head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.tl-catalog__title { margin: 0 0 12px; color: var(--text-heading); font-size: clamp(32px, 5vw, 52px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.tl-catalog__intro { color: var(--text-body); font-size: 18px; line-height: 1.6; }
.tl-catalog__intro p { margin: 0 0 .6em; }
.tl-catalog__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 40px; }
.tl-catalog__tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #334155; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: border-color .2s, color .2s, background .2s; }
.tl-catalog__tab .tl-plat__logo { width: 16px; height: 16px; }
.tl-catalog__tab:hover, .tl-catalog__tab:focus-visible { border-color: var(--primary); color: var(--primary); }
.tl-catalog__tab[aria-current="page"] { border-color: var(--text-heading); background: var(--text-heading); color: #fff; }
.tl-catalog__count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 12px; text-align: center; }
.tl-catalog__tab[aria-current="page"] .tl-catalog__count { background: rgba(255, 255, 255, .18); color: #fff; }
.tl-catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.tl-catalog__empty { text-align: center; color: var(--text-body); font-size: 17px; }
.tl-catalog__empty a { margin-left: 6px; color: var(--primary); font-weight: 700; }

.tl-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 22px; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 24px; background: #fff; box-shadow: 0 4px 24px rgba(15, 23, 42, .04); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.tl-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c, var(--primary)); }
.tl-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c, var(--primary)) 35%, #e2e8f0); box-shadow: 0 20px 48px rgba(15, 23, 42, .10); }
.tl-card__head { display: flex; align-items: center; gap: 14px; }
.tl-card__glyph { display: inline-grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.tl-card__glyph img { width: 32px; height: 32px; object-fit: contain; }
.tl-card__glyph .tl-office__glyph-icon { width: 24px; height: 24px; }
.tl-card__name { margin: 0; color: var(--text-heading); font-size: 21px; font-weight: 800; line-height: 1.2; }
.tl-card__name a { color: inherit; text-decoration: none; }
.tl-card__name a:hover { color: var(--primary); }
.tl-card__tagline { margin: 2px 0 0; color: #64748b; font-size: 13px; font-weight: 600; line-height: 1.4; }
.tl-card__pitch { margin: 0; color: var(--text-body); font-size: 14.5px; line-height: 1.6; }
.tl-card__points { display: grid; gap: 8px; margin: 0; padding: 14px 0 0; border-top: 1px solid #f1f5f9; list-style: none; color: #475569; font-size: 13.5px; }
.tl-card__points li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.tl-card__tick { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--accent-emerald); }
.tl-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.tl-card__price { color: var(--text-heading); font-size: 14px; font-weight: 800; }
.tl-card__link { margin-left: auto; color: var(--primary); font-size: 14px; font-weight: 700; text-decoration: none; }
.tl-card__link:hover { text-decoration: underline; }
@media (max-width: 640px) {
	.tl-catalog { padding: 88px 0 64px; }
	.tl-catalog__inner { padding: 0 16px; }
	.tl-catalog__tabs { justify-content: flex-start; }
}
.tl-mega__head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #94a3b8; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
a.tl-mega__head:hover { color: var(--primary); }
.tl-mega__head .tl-plat__logo { width: 16px; height: 16px; }
