:root {
    --ink: #14121F;
    --paper: #FFFFFF;
    --mist: #F7F6FB;
    --line: #ECEAF4;
    --blue: #2E5CFF;
    --violet: #8B3DFF;
    --magenta: #D926C4;
    --grad: linear-gradient(90deg, var(--blue), var(--violet), var(--magenta));
}
.nx-navbar {
    background: var(--paper);
    border-bottom: 1px solid transparent;
    padding: 0.9rem 0;
    transition: border-color .25s ease, box-shadow .25s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nx-navbar.nx-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(20, 18, 31, 0.05);
}
.nx-navbar::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}
.nx-navbar.nx-scrolled::after {
    transform: scaleX(1);
}
.nx-brand img {
    height: 48px;
    display: block;
}

@media (min-width: 992px) {
    .nx-brand img {
        height: 58px;
    }
}
.nx-links {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
}
.nx-links a {
    color: var(--ink);
    text-decoration: none;
    position: relative;
    padding: 0.4rem 0.1rem;
}
.nx-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--grad);
    transition: width .25s ease, left .25s ease;
}
.nx-links a:hover::after {
    width: 100%;
    left: 0;
}
.nx-cta {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    background: var(--grad);
    color: #fff;
    border: none;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform .15s ease, box-shadow .15s ease;
    display: inline-block;
}
.nx-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(139, 61, 255, 0.28);
}
.nx-toggler {
    border: none;
    background: transparent;
}
.nx-hero {
    background: #ffffff;
    padding: 6rem 0 5rem;
}
.nx-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.08;
    color: var(--ink);
}
.nx-grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nx-hero-sub {
    font-family: 'Inter', sans-serif;
    color: #5b5770;
    font-size: 1.05rem;
    max-width: 520px;
    margin-top: 1.3rem;
}
.nx-hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.nx-btn-outline {
    border: 1.5px solid var(--ink);
    color: var(--ink);
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background .2s ease, color .2s ease;
    display: inline-block;
}
.nx-btn-outline:hover {
    background: var(--ink);
    color: #fff;
}
.nx-hero-visual { position: relative; }
.nx-orbit-svg { width: 100%; height: auto; }
.nx-orbit-ring {
    transform-origin: center;
    transform-box: fill-box;
    animation: nx-spin 20s linear infinite;
}
.nx-node {
    transform-origin: center;
    transform-box: fill-box;
    animation: nx-pulse 2.6s ease-in-out infinite;
}
.nx-node:nth-of-type(2) { animation-delay: .5s; }
.nx-node:nth-of-type(3) { animation-delay: 1s; }
.nx-node:nth-of-type(4) { animation-delay: 1.5s; }

@keyframes nx-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes nx-pulse {
    0%, 100% { opacity: .6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}
@media (max-width: 991px) {
    .nx-hero-actions a { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .nx-orbit-ring, .nx-node { animation: none; }
}
.nx-section {
    padding: 5.5rem 0;
    background: var(--mist);
}
.nx-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    color: var(--ink);
}
.nx-section-sub {
    font-family: 'Inter', sans-serif;
    color: #6b6680;
}
.nx-service-card {
    background: #fff;
    border-radius: 18px;
    padding: 2.2rem 1.7rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(20, 18, 31, 0.05);
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
}
.nx-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(20, 18, 31, 0.09);
}
.nx-service-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: var(--grad);
    margin-bottom: 1.2rem;
}
.nx-service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .5rem;
}
.nx-service-desc {
    font-family: 'Inter', sans-serif;
    color: #6b6680;
    font-size: .95rem;
}
.nx-portfolio-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
    background: var(--grad);
    padding: .35rem .9rem;
    border-radius: 50px;
    display: inline-block;
}
.nx-portfolio-tag-alt {
    background: var(--ink);
}
.nx-portfolio-card {
    display: flex;
    gap: 1.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.4rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(20, 18, 31, 0.05);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}
.nx-portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(20, 18, 31, 0.09);
}
.nx-portfolio-thumb {
    flex: 0 0 84px;
    height: 84px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}
.nx-thumb-a { background: #ffffff; border: 1px solid var(--line); }
.nx-thumb-b { background: #ffffff; border: 1px solid var(--line); }
.nx-portfolio-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .88rem;
    color: var(--violet);
}
.nx-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.8rem 1.4rem;
    height: 100%;
}
.nx-step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    background: var(--grad);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.nx-cta-banner {
    background: var(--grad);
    padding: 4.5rem 0;
}
.nx-cta-banner-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: #fff;
    margin-bottom: .8rem;
}
.nx-cta-banner-sub {
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.9);
    max-width: 520px;
    margin: 0 auto 1.8rem;
}
.nx-cta-banner-btn {
    display: inline-block;
    background: #fff;
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    padding: 0.65rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.nx-cta-banner-btn:hover {
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.15);
}
.nx-footer {
    background: #ffffff;
    border-top: 1px solid var(--line);
    padding: 3.5rem 0 2rem;
}
.nx-footer-tagline {
    font-family: 'Inter', sans-serif;
    color: #6b6680;
    font-size: .92rem;
}
.nx-footer-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1rem;
}
.nx-footer-links li {
    margin-bottom: .6rem;
    font-family: 'Inter', sans-serif;
    font-size: .92rem;
    color: #6b6680;
}
.nx-footer-links a {
    color: #6b6680;
    text-decoration: none;
    transition: color .15s ease;
}
.nx-footer-links a:hover {
    color: var(--violet);
}
.nx-footer-hr {
    border-color: var(--line);
    margin: 2rem 0 1.2rem;
}
.nx-footer-copyright {
    font-family: 'Inter', sans-serif;
    color: #9a95ab;
    font-size: .85rem;
    text-align: center;
    margin: 0;
}
.nx-contact-form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(20, 18, 31, 0.05);
}
.nx-contact-info-card {
    background: var(--mist);
    border-radius: 16px;
    padding: 1.5rem;
}
.nx-admin-sidebar {
    min-height: 100vh;
    background: #fff;
    border-right: 1px solid var(--line);
}
.nx-admin-sidebar-label {
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    color: #9a95ab;
    margin-top: .3rem;
}
.nx-admin-sidebar a {
    color: #6b6680;
    text-decoration: none;
    display: block;
    padding: .7rem 1.2rem;
    border-radius: 8px;
    margin: 2px 10px;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    transition: background .15s ease, color .15s ease;
}
.nx-admin-sidebar a.active,
.nx-admin-sidebar a:hover {
    background: var(--mist);
    color: var(--violet);
    font-weight: 600;
}
.nx-service-img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    border-radius: 14px;
    margin-bottom: 1.2rem;
    display: block;
    background: var(--mist);
    padding: 8px;
}
.nx-portfolio-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}
.nx-portfolio-name-img {
    height: 28px;
    display: block;
    margin-bottom: .5rem;
}
.nx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EEF1FE;
    color: var(--blue);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 1.1rem;
}
.nx-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    display: inline-block;
}
.nx-hero-stats {
    display: flex;
    gap: 2.2rem;
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}
.nx-hero-stats > div {
    display: flex;
    flex-direction: column;
}
.nx-hero-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--ink);
}
.nx-hero-stat-label {
    font-size: 0.8rem;
    color: #8a869a;
}

.nx-3d-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #ffffff;
    background: linear-gradient(135deg, #2E5CFF, #8B3DFF, #D926C4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        1px 1px 0 rgba(139,61,255,0.3),
        2px 2px 0 rgba(139,61,255,0.25),
        3px 3px 0 rgba(139,61,255,0.2),
        4px 4px 6px rgba(0,0,0,0.15);
    letter-spacing: 0.3px;
}

.nx-footer-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2E5CFF;
    background: rgba(46,92,255,0.08);
    border: 1px solid rgba(46,92,255,0.2);
    border-radius: 999px;
}
.nx-footer-links a {
    color: inherit;
    text-decoration: none;
}
.nx-footer-links a:hover {
    color: #2E5CFF;
    text-decoration: underline;
}

.nx-glass-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46,92,255,0.1);
    box-shadow: 0 10px 40px rgba(46,92,255,0.08);
}
.nx-contact-icon-circle {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E5CFF, #8B3DFF, #D926C4);
    color: #fff;
    font-size: 1.3rem;
}
.nx-contact-info-card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    color: inherit;
}
.nx-contact-info-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(46,92,255,0.15);
}

.nx-portfolio-card-v2 {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ECEAF4;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.nx-portfolio-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(46,92,255,0.15);
    border-color: rgba(46,92,255,0.25);
}
.nx-portfolio-card-v2 .nx-portfolio-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: #fff;
}
.nx-portfolio-card-v2 .nx-portfolio-body {
    padding: 1.5rem;
}
.nx-tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.nx-tech-chip {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(46,92,255,0.08);
    color: #2E5CFF;
    border: 1px solid rgba(46,92,255,0.15);
}
