/* =========================================================
   Neural Network Animation Styles – FINAL STABLE VERSION
   Author: ARGETEK
   ========================================================= */

/* =========================================================
   Base neural animation container
   ========================================================= */
[data-neural-animation] {
    position: relative;
    background: #000 !important;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Hide original Canvas parallax background */
[data-neural-animation] .parallax-bg {
    display: none !important;
}

/* =========================================================
   SINGLE SOURCE OF TRUTH – HERO HEIGHT
   (ONLY neural-hero controls height)
   ========================================================= */
[data-neural-animation].neural-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Tablet */
@media (max-width: 992px) {
    [data-neural-animation].neural-hero {
        min-height: 50vh;
    }
}

/* Mobile */
@media (max-width: 768px) {
    [data-neural-animation].neural-hero {
        min-height: 45vh;
    }
}

/* Small phones */
@media (max-width: 575px) {
    [data-neural-animation].neural-hero {
        min-height: 40vh;
    }
}

/* Very small phones */
@media (max-width: 420px) {
    [data-neural-animation].neural-hero {
        min-height: 35vh;
    }
}

/* =========================================================
   Prevent Canvas page-title collapse WITHOUT height inflation
   ========================================================= */
[data-neural-animation].neural-hero .page-title-row {
    width: 100%;
    display: flex;
    align-items: center;
}

/* =========================================================
   Ensure content renders above neural canvas
   ========================================================= */
[data-neural-animation] .container,
[data-neural-animation] .emphasis-title,
[data-neural-animation] h1,
[data-neural-animation] h2,
[data-neural-animation] p,
[data-neural-animation] span {
    position: relative;
    z-index: 2;
}

/* =========================================================
   Neural canvas (background animation)
   ========================================================= */
#neural-network-canvas {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important;
}
/* =========================================================
   Hero background image + overlay
   ========================================================= */
.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    animation: hero-drift 22s ease-in-out infinite;
    transform: scale(1.05);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(10,10,10,0.45) 0%,
        rgba(10,10,10,0.7) 55%,
        rgba(10,10,10,0.88) 100%
    );
}

@keyframes hero-drift {
    0%, 100% {
        transform: scale(1.05) translate3d(0,0,0);
    }
    45% {
        transform: scale(1.08) translate3d(-1.5%, -2%, 0);
    }
    75% {
        transform: scale(1.06) translate3d(1.5%, -1%, 0);
    }
}

/* =========================================================
   Text styling
   ========================================================= */
[data-neural-animation] h1,
[data-neural-animation] h2 {
    color: #fff !important;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    text-shadow:
        0 2px 20px rgba(0,0,0,.9),
        0 4px 40px rgba(0,0,0,.6);
}

[data-neural-animation] p,
[data-neural-animation] span {
    color: rgba(255,255,255,.9) !important;
    text-shadow:
        0 2px 15px rgba(0,0,0,.9),
        0 3px 30px rgba(0,0,0,.6);
}

/* =========================================================
   Emphasis title
   ========================================================= */
[data-neural-animation] .emphasis-title {
    margin: 0;
    padding: 2rem 0;
    text-align: center;
}

[data-neural-animation] .emphasis-title h2 {
    font-size: 48px;
}

@media (max-width: 992px) {
    [data-neural-animation] .emphasis-title h2 { font-size: 40px; }
}
@media (max-width: 768px) {
    [data-neural-animation] .emphasis-title h2 { font-size: 36px; }
}
@media (max-width: 575px) {
    [data-neural-animation] .emphasis-title h2 { font-size: 28px; }
}
@media (max-width: 420px) {
    [data-neural-animation] .emphasis-title h2 { font-size: 24px; }
}

/* =========================================================
   Breadcrumbs
   ========================================================= */
[data-neural-animation] .breadcrumb-item,
[data-neural-animation] .breadcrumb-item a {
    z-index: 3;
    text-shadow:
        0 2px 20px rgba(0,0,0,.9),
        0 4px 40px rgba(0,0,0,.6);
}

[data-neural-animation] .breadcrumb-item.active {
    color: rgba(255,255,255,.7) !important;
}

/* =========================================================
   Z-index safety for sliders
   ========================================================= */
[data-neural-animation] .slider-inner { z-index: 2; }
[data-neural-animation] .swiper-slide { z-index: 3; }
[data-neural-animation] .slider-caption { z-index: 4; }

/* =========================================================
   Global safety
   ========================================================= */
body {
    overflow-x: hidden !important;
}
/* Remove Canvas automatic spacing */
[data-neural-animation].neural-hero.page-title {
    margin-top: 0 !important;
    padding-top: 96px !important;   /* header height */
    padding-bottom: 0 !important;
}

/* Tablet */
@media (max-width: 992px) {
    [data-neural-animation].neural-hero.page-title {
        padding-top: 80px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    [data-neural-animation].neural-hero.page-title {
        padding-top: 72px !important;
    }
}

/* Keep flex centering correct */
[data-neural-animation].neural-hero.page-title .page-title-row {
    min-height: calc(100% - 96px);
    display: flex;
    align-items: center;
}

@media (max-width: 992px) {
    [data-neural-animation].neural-hero.page-title .page-title-row {
        min-height: calc(100% - 80px);
    }
}

@media (max-width: 768px) {
    [data-neural-animation].neural-hero.page-title .page-title-row {
        min-height: calc(100% - 72px);
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    [data-neural-animation] {
        touch-action: pan-y;
        -ms-touch-action: pan-y;
        overscroll-behavior: contain;
        user-select: none;
    }
    [data-neural-animation] .swiper-slide {
        -webkit-tap-highlight-color: transparent;
    }
    [data-neural-animation] .slider-caption {
        user-select: none;
    }
}

@media (max-width: 768px) {
    body [data-neural-animation].neural-hero {
        min-height: 60svh !important;
        min-height: 60vh !important;
    }
}

/* Small phones */
@media (max-width: 575px) {
    [data-neural-animation].neural-hero:first-of-type {
        min-height: 55vh;
    }
}

/* Very small phones */
@media (max-width: 420px) {
    [data-neural-animation].neural-hero:first-of-type {
        min-height: 50vh;
    }
}

