/* Premium 3D code cloud intro – all styles namespaced .intro3d-* */

/* 3D intro: aynı div (preloader) içinde tam ekran arka plan, npm run dev üstte */
.preloader #intro3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero {
    position: relative;
}

#intro3d {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 520px;
    overflow: hidden;
}

#intro3d.intro3d-height-fallback {
    min-height: 70vh;
}

#intro3d canvas,
#intro3d .intro3d-label-layer {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Preloader 3D (legacy) – stacking context */
.intro3d-root {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    isolation: isolate;
}

.intro3d-root .intro3d-canvas-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.intro3d-root .intro3d-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* CSS2D labels – stay behind; contain their z-index */
.intro3d-root .intro3d-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    isolation: isolate;
    z-index: 0;
}

/* Labels as subtle background texture only; low opacity so they never compete with content */
.intro3d-label {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.035);
    white-space: nowrap;
    user-select: none;
    text-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
    filter: blur(0.5px);
    pointer-events: none;
}

@media (min-width: 769px) {
    .intro3d-label {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.04);
    }
}

/* Slide selector: 01 / 02 / 03 on the right – these need pointer-events */
.intro3d-slides {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.intro3d-slides button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.25s ease;
}

.intro3d-slides button:hover {
    color: rgba(255, 255, 255, 0.9);
}

.intro3d-slides button.intro3d-slide-active {
    color: #fff;
}

.intro3d-slides .intro3d-slide-sep {
    opacity: 0.4;
    pointer-events: none;
}

/* Optional highlight sweep overlay (very subtle) */
.intro3d-sweep {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 45%,
        rgba(255, 255, 255, 0.015) 50%,
        transparent 55%,
        transparent 100%
    );
    background-size: 200% 100%;
    opacity: 0;
}

.intro3d-sweep.intro3d-sweep-active {
    animation: intro3d-sweep 14s ease-in-out infinite;
}

@keyframes intro3d-sweep {
    0%, 80% { background-position: 150% center; }
    100% { background-position: -50% center; }
}

@media (prefers-reduced-motion: reduce) {
    .intro3d-sweep.intro3d-sweep-active {
        animation: none;
    }
}

/* Mobile: 3D gösterme, hiç yükleme (script de çalışmaz); PC'de aynen */
@media (max-width: 768px) {
    .preloader #intro3d {
        display: none;
    }

    .preloader .preloader-left {
        flex: 1 1 100%;
    }

    .intro3d-slides {
        right: 24px;
        font-size: 13px;
    }
}
