
@layer base {
    :root {
        color-scheme: light;
        --navy: #f8fafc;
        --navy-2: var(--ink);
        --tech: #2563eb;
        --cyan: #0284c7;
        --violet: #7c3aed;
        --ink: #0f172a;
        --muted: #475569;
        --glass: rgba(255, 255, 255, 0.85);
        --line: rgba(0, 0, 0, 0.08);
    }

    * {
        scroll-behavior: smooth;
    }

    body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.08), transparent 28rem), radial-gradient(circle at 82% 8%, rgba(124, 58, 237, 0.08), transparent 30rem), linear-gradient(135deg, #f8fafc 0%, #e2e8f0 45%, #f1f5f9 100%); letter-spacing: 0; }

    a {
        text-decoration: none;
    }

    input,
    select,
    textarea {
        color: var(--ink);
    }
}

@layer components {
    .site-shell {
        position: relative;
        overflow: hidden;
    }

    .site-shell::before {
        position: fixed;
        inset: 0;
        content: "";
        pointer-events: none;
        opacity: 0.28;
        background-image:
            linear-gradient(rgba(62, 231, 255, 0.12) 1px, transparent 1px),
            linear-gradient(90deg, rgba(62, 231, 255, 0.12) 1px, transparent 1px);
        background-size: 72px 72px;
        mask-image: radial-gradient(circle at center, black, transparent 72%);
        animation: gridFloat 18s linear infinite;
    }

    .container {
        width: min(1180px, calc(100% - 32px));
        margin-inline: auto;
    }

    .section-space {
        padding-block: 96px;
        position: relative;
    }

    .section-band {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(62, 231, 255, 0.035));
        border-block: 1px solid rgba(0, 0, 0, 0.03);
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 50;
        backdrop-filter: blur(22px);
        background: rgba(255, 255, 255, 0.85);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-bar {
        min-height: 82px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 22px;
    }

    .brand,
    .nav-actions,
    .nav-links {
        display: flex;
        align-items: center;
    }

    .brand {
        gap: 12px;
        min-width: max-content;
    }

    .brand-logo {
        width: 58px;
        height: 58px;
        object-fit: contain;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 18px 38px rgba(15, 124, 255, 0.22);
        background: var(--ink);
        padding: 4px;
    }

    .brand strong {
        display: block;
        font-size: 1.05rem;
        font-weight: 800;
        color: var(--ink);
    }

    .brand small {
        display: block;
        color: var(--muted);
        font-size: 0.78rem;
        margin-top: 2px;
    }

    .nav-links {
        gap: 18px;
        color: var(--muted);
        font-size: 0.92rem;
    }

    .nav-links a,
    .language-switch {
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .nav-links a:hover,
    .language-switch:hover {
        color: var(--cyan);
        transform: translateY(-1px);
    }

    .nav-actions {
        gap: 12px;
    }

    .language-switch {
        color: var(--muted);
        font-size: 0.88rem;
        white-space: nowrap;
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 0 22px;
        border-radius: 999px;
        font-weight: 800;
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        white-space: nowrap;
    }

    .btn:hover {
        transform: translateY(-2px);
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--tech), var(--cyan));
        color: #ffffff;
        box-shadow: 0 16px 42px rgba(15, 124, 255, 0.35);
    }

    .btn-secondary {
        border: 1px solid rgba(0, 0, 0, 0.1);
        color: var(--ink);
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(18px);
    }

    .hero {
        min-height: calc(100vh - 82px);
        display: grid;
        align-items: center;
        padding-top: 70px;
    }

    .hero-grid,
    .split-grid,
    .ai-grid,
    .quote-grid,
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 54px;
        align-items: center;
    }

    .hero-copy h1,
    .section-heading h2,
    .contact-grid h2 {
        color: var(--ink);
        font-weight: 900;
        line-height: 1.15;
        margin: 0;
    }

    .hero-copy h1 {
        font-size: clamp(2.5rem, 6vw, 5.4rem);
        max-width: 850px;
    }

    .hero-copy p,
    .section-heading p,
    .contact-grid p,
    .footer p {
        color: var(--muted);
        line-height: 1.9;
    }

    .hero-copy p {
        font-size: 1.15rem;
        margin-block: 24px 30px;
        max-width: 710px;
    }

    .eyebrow {
        display: inline-flex;
        align-items: center;
        margin-bottom: 18px;
        color: var(--cyan);
        font-weight: 800;
        font-size: 0.94rem;
    }

    .hero-actions {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
    }

    .hero-visual {
        position: relative;
        min-height: 520px;
        perspective: 1000px;
    }

    .orbit {
        position: absolute;
        border: 1px solid rgba(62, 231, 255, 0.2);
        border-radius: 50%;
        inset: 44px;
        animation: rotateSoft 18s linear infinite;
    }

    .orbit-two {
        inset: 112px 20px 82px 74px;
        border-color: rgba(143, 107, 255, 0.24);
        animation-duration: 24s;
        animation-direction: reverse;
    }

    .dashboard-cube {
        position: absolute;
        inset: 65px 20px 30px 38px;
        border-radius: 34px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        background: url("../images/tecpro-logo.png") center center / 75% no-repeat, rgba(255, 255, 255, 0.96);
        box-shadow: 0 38px 100px rgba(0, 0, 0, 0.34);
        backdrop-filter: blur(24px);
        transform: rotateY(-10deg) rotateX(7deg);
        padding: 28px;
        animation: floatPanel 5s ease-in-out infinite;
    }

    .cube-top,
    .project-tags,
    .trust-grid {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    .cube-top span,
    .project-tags span,
    .product-badge {
        border: 1px solid rgba(62, 231, 255, 0.18);
        background: rgba(62, 231, 255, 0.08);
        color: var(--tech);
        border-radius: 999px;
        padding: 8px 13px;
        font-size: 0.8rem;
        font-weight: 800;
    }

    .analytics-card {
        margin-top: 52px;
        border-radius: 28px;
        padding: 24px;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .pulse-chip {
        width: max-content;
        padding: 8px 14px;
        border-radius: 999px;
        background: linear-gradient(135deg, rgba(15, 124, 255, 0.28), rgba(62, 231, 255, 0.18));
        color: var(--ink);
        font-weight: 800;
    }

    .bar-chart {
        height: 150px;
        display: flex;
        align-items: end;
        gap: 14px;
        margin-top: 26px;
    }

    .bar-chart i {
        flex: 1;
        min-width: 24px;
        border-radius: 18px 18px 6px 6px;
        background: linear-gradient(180deg, var(--cyan), var(--tech));
        box-shadow: 0 12px 28px rgba(15, 124, 255, 0.34);
    }

    .bar-chart i:nth-child(1) { height: 42%; }
    .bar-chart i:nth-child(2) { height: 70%; }
    .bar-chart i:nth-child(3) { height: 55%; }
    .bar-chart i:nth-child(4) { height: 88%; }
    .bar-chart i:nth-child(5) { height: 64%; }

    .data-line {
        height: 12px;
        margin-top: 18px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
    }

    .data-line.short {
        width: 58%;
    }

    .node-map {
        position: absolute;
        inset: auto 34px 30px auto;
        width: 160px;
        height: 132px;
    }

    .node-map b,
    .ai-network span {
        position: absolute;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--tech), var(--violet));
        box-shadow: 0 0 30px rgba(62, 231, 255, 0.28);
    }

    .node-map b {
        width: 18px;
        height: 18px;
    }

    .node-map::before,
    .ai-network::before {
        position: absolute;
        inset: 18%;
        content: "";
        border: 1px solid rgba(62, 231, 255, 0.2);
        border-radius: 50%;
    }

    .node-map b:nth-child(1) { top: 0; right: 42%; }
    .node-map b:nth-child(2) { top: 42%; right: 0; }
    .node-map b:nth-child(3) { bottom: 0; right: 34%; }
    .node-map b:nth-child(4) { top: 34%; left: 0; }
    .node-map b:nth-child(5) { top: 45%; right: 48%; }

    .trust-grid {
        margin-top: 42px;
        justify-content: center;
    }

    .trust-item {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 54px;
        padding: 0 18px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--ink);
    }

    .trust-item span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--cyan);
        box-shadow: 0 0 20px var(--cyan);
    }

    .section-heading {
        text-align: center;
        max-width: 760px;
        margin: 0 auto 42px;
    }

    .section-heading.align-start {
        text-align: start;
        margin-inline: 0;
    }

    .section-heading h2,
    .contact-grid h2 {
        font-size: clamp(2rem, 4vw, 3.35rem);
    }

    .section-heading p {
        margin-top: 16px;
        font-size: 1.06rem;
    }

    .cards-grid,
    .why-grid,
    .steps-grid,
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }

    .glass-card,
    .product-card,
    .step-card,
    .project-card,
    .quote-form,
    .contact-card {
        border-radius: 28px;
        background: var(--glass);
        border: 1px solid var(--line);
        box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(20px);
    }

    .service-card,
    .step-card,
    .project-card {
        padding: 28px;
        transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    }

    .service-card:hover,
    .project-card:hover,
    .step-card:hover {
        transform: translateY(-8px);
        border-color: rgba(62, 231, 255, 0.34);
        background: rgba(0, 0, 0, 0.06);
    }

    .service-card svg {
        width: 48px;
        height: 48px;
        margin-bottom: 24px;
        stroke: var(--cyan);
        stroke-width: 1.7;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .service-card h3,
    .product-card h3,
    .step-card h3,
    .project-card h3 {
        color: var(--ink);
        font-size: 1.24rem;
        font-weight: 900;
        margin: 0 0 12px;
    }

    .service-card p,
    .product-card p,
    .step-card p,
    .project-card p {
        color: var(--muted);
        line-height: 1.8;
        margin: 0;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .product-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 690px;
        padding: 30px;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)),
            radial-gradient(circle at top left, rgba(143, 107, 255, 0.2), transparent 17rem);
    }

    .product-card ul {
        display: grid;
        gap: 10px;
        margin: 24px 0;
        padding: 0;
    }

    .product-card li,
    .why-item {
        position: relative;
        padding: 11px 34px 11px 12px;
        color: var(--ink);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.055);
        border: 1px solid rgba(0, 0, 0, 0.03);
    }

    .product-card li::before,
    .why-item::before {
        content: "";
        position: absolute;
        right: 13px;
        top: 50%;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--cyan);
        transform: translateY(-50%);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-card strong {
        display: grid;
        place-items: center;
        width: 52px;
        height: 52px;
        margin-bottom: 20px;
        border-radius: 18px;
        background: linear-gradient(135deg, var(--tech), var(--violet));
        color: var(--ink);
        font-size: 1.25rem;
    }

    .ai-network {
        position: relative;
        min-height: 480px;
        border-radius: 36px;
        border: 1px solid rgba(255, 255, 255, 0.13);
        background: radial-gradient(circle, rgba(62, 231, 255, 0.16), rgba(255, 255, 255, 0.04));
        overflow: hidden;
    }

    .ai-network::after {
        content: "";
        position: absolute;
        inset: 16%;
        border-radius: 50%;
        border: 1px dashed rgba(62, 231, 255, 0.22);
        animation: rotateSoft 24s linear infinite;
    }

    .ai-network .core {
        width: 128px;
        height: 128px;
        inset: 50% auto auto 50%;
        transform: translate(-50%, -50%);
        font-size: 2.4rem;
        font-weight: 900;
        z-index: 2;
    }

    .ai-network .node {
        width: 82px;
        height: 82px;
        font-weight: 900;
        color: var(--ink);
    }

    .n1 { top: 15%; right: 20%; }
    .n2 { top: 18%; left: 18%; }
    .n3 { bottom: 16%; right: 16%; }
    .n4 { bottom: 18%; left: 20%; }

    .project-screen {
        min-height: 220px;
        border-radius: 24px;
        padding: 16px;
        margin-bottom: 24px;
        background: linear-gradient(135deg, rgba(15, 124, 255, 0.2), rgba(143, 107, 255, 0.16));
        border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .screen-head {
        display: flex;
        gap: 8px;
        margin-bottom: 14px;
    }

    .screen-head span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--cyan);
    }

    .screen-layout {
        display: grid;
        grid-template-columns: 72px 1fr;
        gap: 14px;
        min-height: 160px;
    }

    .screen-layout aside,
    .screen-layout main {
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.5);
    }

    .screen-layout main {
        padding: 16px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .screen-layout main b,
    .screen-layout main div {
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.14);
    }

    .screen-layout main div {
        grid-column: 1 / -1;
        min-height: 72px;
        background: linear-gradient(90deg, rgba(62, 231, 255, 0.55), rgba(15, 124, 255, 0.25));
    }

    .quote-form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 26px;
    }

    .quote-form input,
    .quote-form select,
    .quote-form textarea {
        min-height: 54px;
        border-radius: 16px;
        padding: 0 16px;
        background: rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.13);
        outline: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .quote-form textarea {
        grid-column: 1 / -1;
        min-height: 140px;
        padding-block: 14px;
        resize: vertical;
    }

    .quote-form input:focus,
    .quote-form select:focus,
    .quote-form textarea:focus {
        border-color: var(--cyan);
        box-shadow: 0 0 0 4px rgba(62, 231, 255, 0.12);
    }

    .quote-form .btn {
        border: 0;
        cursor: pointer;
    }

    .success-message {
        margin-top: 22px;
        padding: 16px 18px;
        border-radius: 18px;
        border: 1px solid rgba(62, 231, 255, 0.24);
        background: rgba(62, 231, 255, 0.1);
        color: #dffcff;
        font-weight: 800;
    }

    .contact-card {
        padding: 28px;
        display: grid;
        gap: 18px;
    }

    .contact-card p {
        margin: 0;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .contact-card p:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .contact-card strong,
    .contact-card span {
        display: block;
    }

    .contact-card strong {
        color: var(--ink);
        margin-bottom: 4px;
    }

    .blog-preview {
        padding-top: 28px;
    }

    .footer {
        padding: 70px 0 30px;
        background: rgba(255, 255, 255, 0.6);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 42px;
    }

    .footer-brand {
        margin-bottom: 16px;
    }

    .footer h3 {
        color: var(--ink);
        font-weight: 900;
        margin: 0 0 18px;
    }

    .footer a:not(.brand) {
        display: block;
        color: var(--muted);
        margin-bottom: 10px;
        transition: color 0.2s ease;
    }

    .footer a:hover {
        color: var(--cyan);
    }

    .copyright {
        color: var(--muted);
        margin-top: 34px;
        padding-top: 24px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        text-align: center;
    }
}

@layer utilities {
    @keyframes gridFloat {
        from { background-position: 0 0, 0 0; }
        to { background-position: 72px 72px, 72px 72px; }
    }

    @keyframes rotateSoft {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    @keyframes floatPanel {
        0%, 100% { transform: rotateY(-10deg) rotateX(7deg) translateY(0); }
        50% { transform: rotateY(-7deg) rotateX(9deg) translateY(-14px); }
    }
}

@media (max-width: 1180px) {
    .nav-bar {
        flex-wrap: wrap;
        padding-block: 14px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero {
        min-height: auto;
    }
}

@media (max-width: 900px) {
    .section-space {
        padding-block: 70px;
    }

    .hero-grid,
    .split-grid,
    .ai-grid,
    .quote-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 430px;
    }

    .cards-grid,
    .products-grid,
    .steps-grid,
    .projects-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .nav-actions,
    .hero-actions {
        width: 100%;
    }

    .nav-actions .btn,
    .hero-actions .btn,
    .quote-form .btn {
        width: 100%;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
    }

    .nav-links {
        justify-content: flex-start;
        gap: 14px;
    }

    .cards-grid,
    .products-grid,
    .steps-grid,
    .projects-grid,
    .why-grid,
    .quote-form {
        grid-template-columns: 1fr;
    }

    .quote-form textarea {
        grid-column: auto;
    }

    .hero-visual {
        min-height: 360px;
    }

    .dashboard-cube {
        inset: 30px 0 10px;
        padding: 20px;
        border-radius: 26px;
    }

    .analytics-card {
        margin-top: 30px;
    }

    .ai-network {
        min-height: 360px;
    }

    .ai-network .node {
        width: 66px;
        height: 66px;
        font-size: 0.82rem;
    }
}

/* ===== LTR Overrides ===== */
[dir="ltr"] .product-card li::before,
[dir="ltr"] .why-item::before {
    right: auto;
    left: 13px;
}

[dir="ltr"] .product-card li,
[dir="ltr"] .why-item {
    padding: 11px 12px 11px 34px;
}

[dir="ltr"] .node-map {
    inset: auto auto 30px 34px;
}

[dir="ltr"] body {
    font-family: 'Segoe UI', 'Inter', sans-serif;
}

/* Language switch button enhanced */
.language-switch {
    color: var(--muted);
    font-size: 0.88rem;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.language-switch:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: rgba(62, 231, 255, 0.08);
    transform: translateY(-1px);
}



/* Projects Image CSS */
.project-image-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.06);
}
.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

/* Clients Marquee CSS */
.clients-section {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    overflow: hidden;
}
.clients-marquee {
    position: relative;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
    padding: 2rem 0;
}
.marquee-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    gap: 2rem;
    animation: scroll 20s linear infinite;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    min-width: 180px;
}
.client-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}
.client-logo:hover img {
    filter: grayscale(0%) opacity(1);
}
.client-logo span {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}
