/* ═══════════════════════════════════════════════════════ */
/*  BASE & SCROLLBAR                                      */
/* ═══════════════════════════════════════════════════════ */
::selection { background: rgba(99,102,241,.3); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #070d1a; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }
html { scroll-behavior: smooth; }

/* ─── Backdrop-blur animation fix ─── */
/* Force GPU compositing on all backdrop-blur elements so
   transforms on ancestor reveal-* containers don't break the blur. */
[class*="backdrop-blur"],
.mobile-overlay,
.project-modal-backdrop,
#navbar.scrolled {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
/* Isolate reveal containers from backdrop-blur children */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    isolation: isolate;
}

/* ═══════════════════════════════════════════════════════ */
/*  NAVIGATION (Desktop)                                  */
/* ═══════════════════════════════════════════════════════ */
#navbar {
    background: transparent;
    transition: background .4s, backdrop-filter .4s, transform .4s, box-shadow .4s;
}
#navbar.scrolled {
    background: rgba(7,13,26,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
#navbar.nav-hidden { transform: translateY(-100%); }

.nav-link {
    position: relative;
    padding: .5rem 1rem;
    font-size: .875rem;
    color: rgba(255,255,255,.5);
    transition: color .3s;
    border-radius: .75rem;
}
.nav-link:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.05); }
.nav-link.active { color: #818cf8; }

/* Animated underline for active nav links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, #818cf8, #8b5cf6);
    border-radius: 1px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ═══════════════════════════════════════════════════════ */
/*  FAB MOBILE BUTTON & FULLSCREEN OVERLAY                */
/* ═══════════════════════════════════════════════════════ */
.fab-button {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 24px rgba(99,102,241,.4);
    transition: transform .3s, box-shadow .3s, background .3s;
    border: none; cursor: pointer;
}
.fab-button:active { transform: scale(.92); }
.fab-button.is-open {
    background: rgba(255,255,255,.15);
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
    transform: rotate(90deg);
}

.mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(4,8,18,.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s cubic-bezier(.4,0,.2,1);
    display: flex; align-items: center; justify-content: center;
}
.mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-link {
    display: block;
    padding: .875rem 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    border-radius: 1rem;
    transition: color .3s, transform .3s, background .3s;
    transform: translateY(20px);
    opacity: 0;
}
.mobile-overlay.is-open .mobile-nav-link {
    transform: translateY(0);
    opacity: 1;
}
.mobile-overlay.is-open .mobile-nav-link:nth-child(1) { transition-delay: .05s; }
.mobile-overlay.is-open .mobile-nav-link:nth-child(2) { transition-delay: .1s; }
.mobile-overlay.is-open .mobile-nav-link:nth-child(3) { transition-delay: .15s; }
.mobile-overlay.is-open .mobile-nav-link:nth-child(4) { transition-delay: .2s; }
.mobile-overlay.is-open .mobile-nav-link:nth-child(5) { transition-delay: .25s; }
.mobile-overlay.is-open .mobile-nav-link:nth-child(6) { transition-delay: .3s; }

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: #fff;
    background: rgba(255,255,255,.05);
}

/* ═══════════════════════════════════════════════════════ */
/*  SCROLL REVEAL                                         */
/* ═══════════════════════════════════════════════════════ */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 0;
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
    will-change: transform, opacity;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(.9); }
.reveal-up.revealed, .reveal-left.revealed, .reveal-right.revealed, .reveal-scale.revealed {
    opacity: 1; transform: translate(0) scale(1);
}

/* ═══════════════════════════════════════════════════════ */
/*  PILLAR CARDS (About section)                          */
/* ═══════════════════════════════════════════════════════ */
.pillar-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
    transition: all .4s cubic-bezier(.4,0,.2,1);
}
.pillar-card:hover {
    border-color: rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    transform: translateX(8px);
}
.pillar-icon {
    flex-shrink: 0;
    width: 3rem; height: 3rem;
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    transition: transform .3s ease;
}
.pillar-card:hover .pillar-icon { transform: scale(1.1) rotate(5deg); }

/* ═══════════════════════════════════════════════════════ */
/*  TIMELINE — Fully responsive                          */
/* ═══════════════════════════════════════════════════════ */
.timeline-wrapper {
    position: relative;
    padding-left: 0;
}

.timeline-line {
    position: absolute;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #f59e0b, #8b5cf6, #06b6d4);
    left: 20px;
}
@media (min-width: 768px) {
    .timeline-line { left: 50%; transform: translateX(-50%); }
}

.timeline-item {
    position: relative;
    padding-left: 56px;
    margin-bottom: 3rem;
}
@media (min-width: 768px) {
    .timeline-item {
        display: flex;
        align-items: flex-start;
        padding-left: 0;
        margin-bottom: 4rem;
    }
    .timeline-item[data-side="left"] { flex-direction: row; }
    .timeline-item[data-side="right"] { flex-direction: row-reverse; }

    .timeline-item .timeline-content {
        width: calc(50% - 2rem);
    }
    .timeline-item[data-side="left"] .timeline-content { text-align: right; margin-right: auto; }
    .timeline-item[data-side="right"] .timeline-content { text-align: left; margin-left: auto; }
}

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 4px;
    width: 2rem; height: 2rem;
    border-radius: 50%;
    background: #070d1a;
    border-width: 2px;
    border-style: solid;
    display: flex; align-items: center; justify-content: center;
    transform: translateX(-50%);
    z-index: 10;
    transition: all .4s ease;
}
.dot-amber { border-color: #f59e0b; }
.dot-rose { border-color: #f43f5e; }
.dot-purple { border-color: #8b5cf6; }
.dot-cyan { border-color: #06b6d4; }
.dot-accent {
    border-color: transparent;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    box-shadow: 0 0 16px rgba(99,102,241,.3);
}

@media (min-width: 768px) {
    .timeline-dot {
        left: 50%;
        top: 8px;
        width: 2.5rem; height: 2.5rem;
    }
}

.timeline-item.revealed .timeline-dot {
    animation: scaleIn .5s ease-out;
}
@keyframes scaleIn {
    0% { transform: translateX(-50%) scale(0); opacity: 0; }
    60% { transform: translateX(-50%) scale(1.2); }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════ */
/*  APP CARDS (Design section — individual showcase)     */
/* ═══════════════════════════════════════════════════════ */
.app-card {
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    text-align: center;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
.app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--app-color, #818cf8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .4s;
}
.app-card:hover::before { opacity: .06; }
.app-card:hover {
    border-color: rgba(255,255,255,.12);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.app-card-icon {
    width: 3.5rem; height: 3.5rem;
    border-radius: .875rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    transition: transform .3s;
}
.app-card:hover .app-card-icon { transform: scale(1.1); }
.app-card-years {
    display: inline-block;
    margin-top: .625rem;
    padding: .1875rem .625rem;
    border-radius: .375rem;
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.35);
    font-size: .625rem;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════ */
/*  TOOL TILES → TOOL CHIPS (Design section)             */
/* ═══════════════════════════════════════════════════════ */
.tool-chip {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem 1rem .625rem .625rem;
    border-radius: .875rem;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
    transition: all .3s;
    flex: 0 0 auto;
}
.tool-chip:hover {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    transform: translateY(-2px);
}
.tool-chip-icon {
    flex-shrink: 0;
    width: 2.5rem; height: 2.5rem;
    border-radius: .625rem;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: .875rem;
}
.tool-chip-text .text-white { font-weight: 500; font-size: .8125rem; }
.tool-chip-text .text-white\/30 { font-size: .6875rem; }

.comp-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem;
    border-radius: .625rem;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
    color: rgba(255,255,255,.5);
    font-size: .75rem; font-weight: 500;
    transition: all .3s;
}
.comp-tag:hover {
    border-color: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
}

/* ═══════════════════════════════════════════════════════ */
/*  MIND MAP (Development section) — compact layout      */
/* ═══════════════════════════════════════════════════════ */
.mindmap-container {
    overflow: hidden;
    position: relative;
}

.mindmap {
    position: relative;
    width: 100%;
    min-height: 320px;
}
@media (max-width: 767px) {
    .mindmap {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: .375rem;
    }
}

.mm-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 767px) {
    .mm-lines { display: none; }
}

.mm-node, .mm-leaf {
    position: absolute;
    z-index: 2;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
@media (max-width: 767px) {
    .mm-node, .mm-leaf {
        position: relative !important;
        top: auto !important; left: auto !important;
        right: auto !important; bottom: auto !important;
        transform: none !important;
    }
}

.mm-node {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem;
    border-radius: .75rem;
    background: rgba(15,23,42,.95);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-weight: 600;
    font-size: .8125rem;
    font-family: 'Space Grotesk', sans-serif;
    cursor: default;
}

.mm-center {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(139,92,246,.2));
    border-color: rgba(129,140,248,.35);
    font-size: .875rem;
    padding: .625rem 1.25rem;
    box-shadow: 0 0 24px rgba(99,102,241,.15);
}
.mm-frontend { top: 22%; left: 16%; }
.mm-backend { top: 22%; right: 16%; left: auto; }
.mm-tools { bottom: 8%; left: 50%; transform: translateX(-50%); }

.mm-leaf {
    display: inline-flex; align-items: center; gap: .375rem;
    padding: .3125rem .625rem;
    border-radius: .5rem;
    background: rgba(15,23,42,.9);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.6);
    font-size: .6875rem;
    font-weight: 500;
    cursor: default;
    white-space: nowrap;
}
.mm-leaf:hover {
    border-color: rgba(129,140,248,.2);
    color: rgba(255,255,255,.9);
    background: rgba(129,140,248,.05);
}
.mm-leaf i { flex-shrink: 0; }
.mm-leaf small {
    color: rgba(255,255,255,.25);
    font-weight: 400;
    margin-left: .125rem;
}

/* Leaf positions (desktop) — cluster near their branches */
.mm-fe-1 { top: 8%; left: 3%; }
.mm-fe-2 { top: 18%; left: 1%; }
.mm-fe-3 { top: 28%; left: 2%; }
.mm-fe-4 { top: 38%; left: 4%; }
.mm-fe-5 { top: 48%; left: 1%; }

.mm-be-1 { top: 8%; right: 3%; left: auto; }
.mm-be-2 { top: 18%; right: 1%; left: auto; }
.mm-be-3 { top: 28%; right: 4%; left: auto; }
.mm-be-4 { top: 38%; right: 2%; left: auto; }

.mm-to-1 { bottom: 0%; left: 18%; }
.mm-to-2 { bottom: 0%; left: 35%; }
.mm-to-3 { bottom: 0%; right: 25%; left: auto; }
.mm-to-4 { bottom: 0%; right: 12%; left: auto; }

/* Mobile: grouped tree layout */
@media (max-width: 767px) {
    .mm-node {
        font-size: .75rem;
        padding: .5rem .875rem;
    }
    .mm-center {
        font-size: .8125rem;
        padding: .625rem 1rem;
        margin-bottom: .125rem;
        justify-self: center;
    }
    .mm-leaf { font-size: .625rem; padding: .25rem .5rem; }

    /* Mobile grouping via CSS Grid */
    .mm-branch-group {
        display: flex;
        flex-wrap: wrap;
        gap: .375rem;
        padding-left: 1.5rem;
        border-left: 2px solid rgba(255,255,255,.06);
        margin-left: .75rem;
    }
}

/* ═══════════════════════════════════════════════════════ */
/*  APP SPOTLIGHT CARDS (Development section)            */
/* ═══════════════════════════════════════════════════════ */
.app-spotlight-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    transition: all .35s cubic-bezier(.4,0,.2,1);
}
.app-spotlight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(129,140,248,.2);
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    background: rgba(255,255,255,.04);
}

/* ═══════════════════════════════════════════════════════ */
/*  AI SECTION — featured panel + compact chips          */
/* ═══════════════════════════════════════════════════════ */
.ai-approach-panel {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(139,92,246,.04), rgba(6,182,212,.04));
    border: 1px solid rgba(139,92,246,.1);
}
.ai-approach-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.ai-approach-item .icon-wrap {
    flex-shrink: 0;
    width: 2rem; height: 2rem;
    border-radius: .5rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(139,92,246,.08);
}
.ai-approach-item .icon-wrap i { width: 1rem; height: 1rem; color: rgba(139,92,246,.7); }
.ai-approach-item h4 { font-size: .8125rem; font-weight: 600; color: #fff; line-height: 1.3; }
.ai-approach-item p { font-size: .6875rem; color: rgba(255,255,255,.35); margin-top: .125rem; line-height: 1.4; }

.ai-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .875rem;
    border-radius: .625rem;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    transition: all .3s;
    cursor: default;
}
.ai-chip:hover {
    border-color: rgba(139,92,246,.2);
    background: rgba(139,92,246,.04);
}
.ai-chip-icon {
    width: 1.75rem; height: 1.75rem;
    border-radius: .4375rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ai-chip-icon i { width: .875rem; height: .875rem; }
.ai-chip-name { font-size: .75rem; font-weight: 600; color: #fff; }
.ai-chip-sub { font-size: .625rem; color: rgba(255,255,255,.3); }

/* ═══════════════════════════════════════════════════════ */
/*  OPS / NETZWERK-TECHNIK — grouped categories          */
/* ═══════════════════════════════════════════════════════ */
.ops-group {
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
}
.ops-group-header {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin-bottom: .875rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.ops-group-header .icon-wrap {
    width: 2.25rem; height: 2.25rem;
    border-radius: .625rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ops-group-header .icon-wrap i { width: 1.125rem; height: 1.125rem; }
.ops-group-header h4 {
    font-size: .8125rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
}
.ops-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4375rem .125rem;
    font-size: .75rem;
    color: rgba(255,255,255,.55);
    transition: color .2s;
}
.ops-item:hover { color: rgba(255,255,255,.85); }
.ops-item i { width: .875rem; height: .875rem; flex-shrink: 0; opacity: .5; }
.ops-item span { font-weight: 500; }

/* ═══════════════════════════════════════════════════════ */
/*  PORTFOLIO                                            */
/* ═══════════════════════════════════════════════════════ */
.portfolio-filter {
    padding: .5rem 1.25rem;
    border-radius: .75rem;
    font-size: .8125rem; font-weight: 500;
    color: rgba(255,255,255,.4);
    background: transparent;
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
    transition: all .3s;
}
.portfolio-filter:hover { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.15); }
.portfolio-filter.active {
    color: #818cf8;
    background: rgba(129,140,248,.08);
    border-color: rgba(129,140,248,.3);
}

.portfolio-card {
    border-radius: 1.25rem;
    overflow: hidden;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    transition: all .4s;
}
.portfolio-card:hover {
    border-color: rgba(129,140,248,.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.portfolio-card.hidden-card { display: none; }

.portfolio-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.portfolio-card-overlay {
    position: absolute;
    top: 1rem; right: 1rem;
    opacity: 0; transition: opacity .3s;
}
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }

/* ═══════════════════════════════════════════════════════ */
/*  PROJECT MODAL                                        */
/* ═══════════════════════════════════════════════════════ */
.project-modal {
    position: fixed; inset: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
}
.project-modal.active { opacity: 1; pointer-events: auto; }

.project-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(4,8,18,.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-modal-container {
    position: relative;
    width: 100%; max-width: 640px; max-height: 90vh;
    overflow-y: auto;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.5rem;
    animation: modalIn .4s cubic-bezier(.16,1,.3,1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}
.project-modal-container::-webkit-scrollbar { width: 6px; }
.project-modal-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 100px; }

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.project-modal-close {
    position: absolute; top: 1rem; right: 1rem;
    z-index: 10;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    transition: background .2s;
}
.project-modal-close:hover { background: rgba(255,255,255,.2); }

.project-gallery {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.project-gallery-track {
    display: flex;
    height: 100%;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.project-gallery-track > div {
    flex: 0 0 100%;
    height: 100%;
}

.gallery-nav {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .2s;
}
.gallery-nav:hover { background: rgba(0,0,0,.7); }
.gallery-nav-prev { left: .75rem; }
.gallery-nav-next { right: .75rem; }

.gallery-dots {
    position: absolute; bottom: .75rem;
    left: 50%; transform: translateX(-50%);
    display: flex; gap: .375rem;
}
.gallery-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    border: none; cursor: pointer;
    transition: background .2s;
}
.gallery-dot.active { background: #818cf8; }

/* ═══════════════════════════════════════════════════════ */
/*  CERTIFICATION SHOWCASE (large, standalone)           */
/* ═══════════════════════════════════════════════════════ */
.cert-showcase {
    transition: all .4s;
}
.cert-showcase:hover {
    border-color: rgba(59,130,246,.2);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.cert-card-large {
    padding: 2rem;
    border-radius: 1.5rem;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    transition: all .4s;
}
.cert-card-large:hover {
    border-color: rgba(59,130,246,.15);
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
}

/* ═══════════════════════════════════════════════════════ */
/*  CURSOR GLOW                                          */
/* ═══════════════════════════════════════════════════════ */
.cursor-glow {
    position: fixed;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.06) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity .3s;
}

/* ═══════════════════════════════════════════════════════ */
/*  RESPONSIVE FIXES                                     */
/* ═══════════════════════════════════════════════════════ */

/* Prevent horizontal overflow globally */
html, body { overflow-x: hidden; }
section, .container { max-width: 100vw; }

@media (max-width: 640px) {
    .pillar-card { padding: 1rem; gap: .75rem; }
    .pillar-icon { width: 2.5rem; height: 2.5rem; }

    /* AI chips wrap nicely on small screens */
    .ai-chip { padding: .375rem .625rem; }
    .ai-chip-icon { width: 1.5rem; height: 1.5rem; }
    .ai-chip-name { font-size: .6875rem; }

    /* Ops groups stack properly */
    .ops-group { padding: 1rem; }
    .ops-item { font-size: .6875rem; }

    /* Tool chips compact on mobile */
    .tool-chip { padding: .5rem .625rem; }
    .tool-chip-icon { width: 2rem; height: 2rem; font-size: .6875rem; }

    /* App cards compact on mobile */
    .app-card { padding: 1rem; }
    .app-card-icon { width: 2.75rem; height: 2.75rem; }
    .app-card-icon span { font-size: 1rem !important; }
}

@media (max-width: 767px) {
    /* Prevent any section from overflowing */
    .mindmap-container,
    .ai-approach-panel { overflow-x: hidden; }

    /* AI approach grid → single column */
    .ai-approach-panel .grid { grid-template-columns: 1fr; gap: .75rem; }
}
