/* ═══════════════════════════════════════════════════
   Locenta Cinematic Style
   Three-Layer Protection System:
     Layer 1 (z:0)  — Three.js canvas
     Layer 2 (z:1)  — Dark cinematic overlay
     Layer 3 (z:2+) — Website UI content
   All panels are semi-solid for guaranteed readability.
═══════════════════════════════════════════════════ */

/* Hide app.blade ambient layers on cinematic pages
   (this CSS only loads on homepage via @section head) */
.lc-cosmos,
.lc-matrix,
.lc-noise {
    display: none !important;
}

/* ─────────────────────────────────────────────
   LAYER 1: Three.js Canvas
───────────────────────────────────────────── */
#lc-cinematic-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ─────────────────────────────────────────────
   LAYER 2: Dark Cinematic Contrast Overlay
   This ALWAYS exists. Reduces 3D brightness.
───────────────────────────────────────────── */
.lc-cinematic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(
            circle at center,
            rgba(8,12,28,0.15) 0%,
            rgba(8,12,28,0.30) 45%,
            rgba(6,10,25,0.50) 70%,
            rgba(3,5,15,0.70) 100%
        );
}

/* ─────────────────────────────────────────────
   LAYER 3: Hero Section (content z:10+)
───────────────────────────────────────────── */
.lc-hero-cinematic {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Extra gradient vignette on hero — very light */
.lc-hero-cinematic::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3,5,15,0.15) 0%, transparent 30%, transparent 65%, rgba(3,5,15,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Subtle horizontal scan line */
.lc-hero-cinematic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(30,70,170,0.12) 40%, rgba(50,30,130,0.08) 60%, transparent 90%);
    z-index: 2;
    pointer-events: none;
    animation: lc-scan 10s ease-in-out infinite;
}
@keyframes lc-scan {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 0.6; }
    50% { top: 100%; opacity: 0.3; }
    90% { opacity: 0; }
}

/* ─────────────────────────────────────────────
   MANDATORY SEMI-SOLID PANELS
   Cards & content boxes — never fully transparent.
───────────────────────────────────────────── */
.lc-panel {
    background: rgba(18,22,40,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
}

/* ─────────────────────────────────────────────
   HERO TAG
───────────────────────────────────────────── */
.lc-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 1rem;
    background: rgba(18,22,40,0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #5990dd;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.lc-hero-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1a4aaa;
    box-shadow: 0 0 8px rgba(26,74,170,0.5);
    animation: lc-dot-pulse 3s ease infinite;
}
@keyframes lc-dot-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(26,74,170,0.5); transform: scale(1); }
    50% { box-shadow: 0 0 14px rgba(26,74,170,0.7); transform: scale(1.15); }
}

/* ─────────────────────────────────────────────
   TITLE EFFECTS — White headings for contrast
───────────────────────────────────────────── */
.lc-title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #b8c8e8 50%, #5990dd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lc-title-shimmer {
    background: linear-gradient(90deg, #5990dd, #ffffff, #6644bb, #ffffff, #1a4aaa);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lc-shimmer 10s linear infinite;
}
@keyframes lc-shimmer {
    0% { background-position: -300% center; }
    100% { background-position: 300% center; }
}

/* ─────────────────────────────────────────────
   STAT CARDS — Semi-solid background
───────────────────────────────────────────── */
.lc-stat-card {
    background: rgba(18,22,40,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
.lc-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26,74,170,0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.lc-stat-card:hover {
    background: rgba(22,26,48,0.80);
    border-color: rgba(26,74,170,0.15);
    transform: translateY(-2px);
}
.lc-stat-card:hover::before {
    opacity: 1;
}

/* ─────────────────────────────────────────────
   FLOATING BADGE
───────────────────────────────────────────── */
.lc-floating-badge {
    background: rgba(18,22,40,0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.875rem;
    padding: 0.5rem 0.875rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* ─────────────────────────────────────────────
   SCROLL INDICATOR
───────────────────────────────────────────── */
.lc-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 20;
}
.lc-scroll-indicator span {
    font-size: 0.5625rem;
    color: rgba(100,116,139,0.4);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.lc-scroll-mouse {
    width: 20px;
    height: 32px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.06);
    position: relative;
}
.lc-scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: rgba(26,74,170,0.6);
    border-radius: 3px;
    animation: lc-scroll-dot 2.5s ease-in-out infinite;
}
@keyframes lc-scroll-dot {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.2; }
}

/* ─────────────────────────────────────────────
   PHONE MOCKUP
───────────────────────────────────────────── */
.lc-phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    border-radius: 2.5rem;
    border: 3px solid rgba(255,255,255,0.05);
    background: #080a14;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.02),
        0 25px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.lc-phone-mockup:hover {
    transform: translateY(-6px) scale(1.01);
}
.lc-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #080a14;
    border-radius: 0 0 1.25rem 1.25rem;
    z-index: 10;
}
.lc-phone-notch::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: rgba(255,255,255,0.03);
    border-radius: 999px;
}
.lc-phone-bar {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    z-index: 10;
}
.lc-phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 2.25rem;
    background: linear-gradient(180deg, #0a0d18, #060914);
    position: relative;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.lc-phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: opacity 0.5s ease;
}

/* Phone glow — very subtle */
.lc-phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,34,102,0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: lc-glow-pulse 6s ease-in-out infinite;
}
@keyframes lc-glow-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%,-50%) scale(1.1); }
}

/* ─────────────────────────────────────────────
   SCROLL REVEALS
───────────────────────────────────────────── */
.lc-cin-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(.16,1,.3,1);
}
.lc-cin-reveal.visible { opacity: 1; transform: translateY(0); }

.lc-cin-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(.16,1,.3,1);
}
.lc-cin-reveal-left.visible { opacity: 1; transform: translateX(0); }

.lc-cin-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(.16,1,.3,1);
}
.lc-cin-reveal-right.visible { opacity: 1; transform: translateX(0); }

.lc-cin-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 1s cubic-bezier(.16,1,.3,1);
}
.lc-cin-reveal-scale.visible { opacity: 1; transform: scale(1); }

.lc-cin-d1 { transition-delay: .1s; }
.lc-cin-d2 { transition-delay: .2s; }
.lc-cin-d3 { transition-delay: .3s; }
.lc-cin-d4 { transition-delay: .4s; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 767px) {
    .lc-phone-mockup {
        width: 220px;
        height: 440px;
        border-radius: 2rem;
    }
    .lc-phone-notch {
        width: 90px;
        height: 22px;
    }
    .lc-phone-screen {
        border-radius: 1.75rem;
    }
    .lc-phone-glow {
        width: 250px;
        height: 250px;
    }
    .lc-scroll-indicator {
        display: none;
    }
    /* Stronger overlay on mobile for readability */
    .lc-cinematic-overlay {
        background:
            radial-gradient(
                circle at center,
                rgba(8,12,28,0.30) 0%,
                rgba(8,12,28,0.45) 45%,
                rgba(6,10,25,0.60) 70%,
                rgba(3,5,15,0.78) 100%
            );
    }
}
@media (max-width: 380px) {
    .lc-phone-mockup {
        width: 190px;
        height: 380px;
        border-radius: 1.75rem;
    }
    .lc-phone-notch {
        width: 80px;
        height: 20px;
        border-radius: 0 0 1rem 1rem;
    }
    .lc-phone-screen {
        border-radius: 1.5rem;
    }
    .lc-phone-glow {
        width: 200px;
        height: 200px;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .lc-phone-mockup {
        width: 250px;
        height: 500px;
    }
}
