:root {
    --nms-primary: #6a11cb;
    --nms-secondary: #2575fc;
    --nms-accent: #00f5ff;
    --nms-bg: #050816;
    --nms-text-soft: rgba(226, 232, 255, 0.8);
}

/* Grundhintergrund für Seiten, die Nexus-Styling nutzen */
body {
    background-color: var(--nms-bg);
}

/* =========================
   HERO / STARTBEREICH
   ========================= */

.nms-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem 4rem;
    overflow: hidden;
    color: #f9fafb;
}

.nms-hero-bg-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.nms-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Hero-Bilder richtig übereinander legen */
.nms-hero-bg picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.nms-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.nms-hero-img.is-active {
    opacity: 1;
}

.nms-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(5, 8, 22, 0.4), rgba(5, 8, 22, 0.9)),
        radial-gradient(circle at 0% 0%, rgba(106, 17, 203, 0.45), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(37, 117, 252, 0.4), transparent 55%);
    mix-blend-mode: normal;
    z-index: 0;
}

.nms-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 2.75rem;
    align-items: center;
}

@media (max-width: 992px) {
    .nms-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.nms-hero-card {
    background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent 60%),
                radial-gradient(circle at 100% 100%, rgba(0, 255, 255, 0.04), transparent 55%),
                rgba(10, 10, 25, 0.75);
    border-radius: 28px;
    padding: 2.2rem 2.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.9),
        0 0 26px rgba(59, 130, 246, 0.32);
}

@media (max-width: 576px) {
    .nms-hero-card {
        padding: 1.7rem 1.4rem;
        border-radius: 22px;
    }
}

.nms-hero-tagline {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(226, 232, 255, 0.7);
    margin-bottom: 0.65rem;
}

.nms-hero-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 0.6rem;
}

.nms-hero-title span {
    background: linear-gradient(120deg, var(--nms-primary), var(--nms-secondary), var(--nms-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nms-hero-subline {
    font-size: 0.98rem;
    color: var(--nms-text-soft);
    margin-bottom: 1.4rem;
}

/* Tags unter der Subline */

.nms-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.7rem;
}

.nms-pill {
    font-size: 0.75rem;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: rgba(226, 232, 255, 0.9);
    background: radial-gradient(circle at 0 0, rgba(148, 163, 255, 0.25), transparent 60%);
}

/* Status-Zeile */

.nms-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.78rem;
    color: rgba(196, 212, 255, 0.9);
    margin-bottom: 1.4rem;
}

.nms-hero-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: radial-gradient(circle, #22c55e, #16a34a);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
    animation: nmsPing 1.7s ease-out infinite;
}

@keyframes nmsPing {
    0% { transform: scale(1); opacity: 1; }
    70% { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* CTA Buttons */

.nms-hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

@media (max-width: 576px) {
    .nms-hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }
}

.nms-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    color: #0b1120;
    background: linear-gradient(120deg, var(--nms-primary), var(--nms-secondary));
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.9),
        0 0 18px rgba(59, 130, 246, 0.7);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, filter 0.15s ease-out;
}

.nms-btn-primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.95),
        0 0 22px rgba(96, 165, 250, 0.9);
    filter: brightness(1.05);
}

.nms-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.4rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 400;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.65);
    color: rgba(226, 232, 255, 0.96);
    background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.15), transparent 60%),
                rgba(15, 23, 42, 0.85);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.75);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
}

.nms-btn-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(226, 232, 255, 0.98);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.9);
}

.nms-hero-mail {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: rgba(199, 210, 254, 0.9);
}

.nms-hero-mail a {
    color: #e5e7eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.7);
}

.nms-hero-mail a:hover {
    border-color: rgba(248, 250, 252, 0.95);
}

/* Rechte Seite im Hero */

.nms-hero-side {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .nms-hero-side {
        align-items: center;
        text-align: left;
    }
}

.nms-hero-statbox {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 22px;
    padding: 1.15rem 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: rgba(226, 232, 255, 0.9);
    font-size: 0.82rem;
    width: 100%;
    max-width: 320px;
}

.nms-hero-statbox-title {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    color: rgba(148, 163, 184, 0.95);
}

.nms-hero-statbox-main {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.nms-hero-statbox-meta {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.9);
}

/* =========================
   PORTFOLIO / FILTER
   ========================= */

.alime-projects-menu {
    margin-bottom: 1.5rem;
}

.portfolio-menu {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.4rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.75);
}

.portfolio-menu .btn {
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    border: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    color: rgba(209, 213, 219, 0.9);
    position: relative;
    overflow: hidden;
}

.portfolio-menu .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(106, 17, 203, 0.9), rgba(37, 117, 252, 0.9));
    opacity: 0;
    transition: opacity 0.2s ease-out;
    z-index: -1;
}

.portfolio-menu .btn.active,
.portfolio-menu .btn:hover {
    color: #f9fafb;
}

.portfolio-menu .btn.active::before,
.portfolio-menu .btn:hover::before {
    opacity: 1;
}

/* Filterleiste + Suche */

.nms-filter-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .nms-filter-bar {
        flex-direction: row;
        justify-content: space-between;
    }
}

.nms-search-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.nms-search-wrapper input {
    border: 0;
    outline: 0;
    background: transparent;
    color: #e5e7eb;
    font-size: 0.82rem;
    min-width: 0;
}

.nms-search-wrapper input::placeholder {
    color: rgba(148, 163, 184, 0.9);
}

.nms-search-icon {
    font-size: 0.9rem;
    color: rgba(156, 163, 175, 0.95);
}

/* Portfolio Items */

.single-portfolio-content {
    border-radius: 18px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.85);
    position: relative;
}

.single-portfolio-content img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease-out, filter 0.4s ease-out;
}

.single-portfolio-content:hover img {
    transform: scale(1.04);
    filter: saturate(1.1);
}

.single-portfolio-content .hover-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0.75rem 0.9rem;
}

.single-portfolio-content .hover-content .portfolio-img {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #020617;
    background: radial-gradient(circle at 25% 0%, #ffffff 0, #f3f4f6 35%, #9ca3af 85%);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.8),
        0 12px 26px rgba(15, 23, 42, 0.95);
}

/* Gallery Überschrift / Intro */

.nms-gallery-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(156, 163, 175, 0.9);
    margin-bottom: 0.4rem;
}

.nms-gallery-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f9fafb;
}

.nms-gallery-intro {
    font-size: 0.92rem;
    color: rgba(209, 213, 219, 0.9);
    max-width: 520px;
    margin: 0.45rem auto 0;
}

.nms-gallery-search-label {
    font-size: 0.8rem;
    color: rgba(156, 163, 175, 0.9);
}

.mt-15 {
    margin-top: 15px;
}

/* =========================
   LIGHTBOX (Global nutzbar)
   ========================= */

#lbOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 9999;
}

#lbOverlay[hidden] {
    display: none;
}

#lbOverlay img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity .15s linear;
}

#lbOverlay .lb-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

#lbOverlay .lb-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lbOverlay .lb-spinner::after {
    content: "";
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    animation: lbspin 1s linear infinite;
}

@keyframes lbspin {
    to {
        transform: rotate(360deg);
    }
}
