/* ══════════════════════════════════════════════════════════════════════
   SkillTech SAS - Animated Luxury Web Experience
   Inspired by WebHeroe & Awwwards (60fps, Les Animals, Tubik)
   Fluid 60FPS Animations, Kinetic Canvases, Floating Depth
   ══════════════════════════════════════════════════════════════════════ */

/* ─── Scroll Progress Bar ─── */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #7fb800 0%, #a4d233 60%, #38d9a9 100%);
    box-shadow: 0 0 14px rgba(164, 210, 51, 0.85);
    z-index: 99999;
    width: 0%;
    transition: width 0.08s ease-out;
    pointer-events: none;
}

/* ─── Hero Canvas Container & 60FPS Particles ─── */
.hero-canvas-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.hero-interactive-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto; /* allows mouse interaction */
}

/* ─── Floating Continuous Levitation Physics ─── */
@keyframes floatSlow {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1deg);
    }
    100% {
        transform: translateY(4px) rotate(-1deg);
    }
}

.kinetic-float {
    animation: floatSlow 5s ease-in-out infinite alternate;
}

.kinetic-float-delayed {
    animation: floatSlow 6.5s ease-in-out 1.2s infinite alternate;
}

/* ─── Animated Pulse Glow Indicator ─── */
@keyframes neonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(164, 210, 51, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(164, 210, 51, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(164, 210, 51, 0);
    }
}

.status-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #a4d233;
    display: inline-block;
    animation: neonPulse 2s infinite;
}

/* ─── Bento Grid Ambient Glow Border ─── */
.luxury-bento-card {
    background: linear-gradient(135deg, rgba(16, 26, 18, 0.8) 0%, rgba(9, 15, 11, 0.92) 100%) !important;
    border: 1px solid rgba(164, 210, 51, 0.24) !important;
    border-radius: 22px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 0 20px rgba(164, 210, 51, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.luxury-bento-card:hover {
    background: linear-gradient(135deg, rgba(24, 40, 28, 0.9) 0%, rgba(12, 20, 14, 0.96) 100%) !important;
    border-color: rgba(164, 210, 51, 0.6) !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.65), 0 0 30px rgba(164, 210, 51, 0.25) !important;
    transform: translateY(-5px);
}

/* ─── Gradient Headline Fill (100% SkillTech Brand: Blanco -> Lima -> Verde) ─── */
.gradient-text-luxury {
    background: linear-gradient(135deg, #ffffff 0%, #d4f58c 30%, #a4d233 65%, #7fb800 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
}

/* ─── Subtle Section Curved Wave Divider ─── */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 48px;
}

.wave-divider .shape-fill {
    fill: #0d0f0c;
}

/* ─── Cyber-Mesh Animated Grid (Awwwards 60fps / WebHeroe) ─── */
.cyber-mesh-bg {
    background-color: #0c0f0a;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(127, 184, 0, 0.12) 0%, transparent 55%),
        linear-gradient(rgba(164, 210, 51, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(164, 210, 51, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 44px 44px, 44px 44px;
    background-position: 0 0, -1px -1px, -1px -1px;
}

/* ─── Card Interactive Spotlight Follower ─── */
.corp-card, .luxury-bento-card, .corp-stat-card {
    position: relative;
    overflow: hidden;
}

.corp-card::before, .luxury-bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(350px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(164, 210, 51, 0.13), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.corp-card:hover::before, .luxury-bento-card:hover::before {
    opacity: 1;
}

/* ─── Border Beam Traveling Glow Effect ─── */
@keyframes borderBeamRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.border-beam-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 1px;
    background: rgba(164, 210, 51, 0.2);
}

.border-beam-card::after {
    content: '';
    position: absolute;
    inset: -150%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(164, 210, 51, 0.6) 60deg, transparent 120deg);
    animation: borderBeamRotate 6s linear infinite;
    pointer-events: none;
}

.border-beam-content {
    position: relative;
    z-index: 2;
    background: #141812;
    border-radius: 23px;
    height: 100%;
    width: 100%;
}

/* ─── Live Telemetry Strip ─── */
.telemetry-strip {
    background: rgba(15, 19, 13, 0.95);
    border-top: 1px solid rgba(164, 210, 51, 0.18);
    border-bottom: 1px solid rgba(164, 210, 51, 0.18);
    padding: 0.6rem 0;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.telemetry-strip .telemetry-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.telemetry-strip .telemetry-val {
    color: #a4d233;
    font-weight: 700;
}

/* ─── Shimmer Glass Pill ─── */
.glass-pill {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 0.35rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #f1f5f9;
}

/* ─── Ultra-Contrast Tech Status Badges (Crisp White on Obsidian, Neon Lime Glow) ─── */
.badge-tech-status {
    background: rgba(14, 18, 12, 0.94) !important;
    border: 1.5px solid rgba(164, 210, 51, 0.65) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.03em !important;
    padding: 0.4rem 0.95rem !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 0 16px rgba(164, 210, 51, 0.25), inset 0 0 8px rgba(164, 210, 51, 0.12) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.badge-tech-status.badge-sm {
    font-size: 0.76rem !important;
    padding: 0.28rem 0.75rem !important;
    font-weight: 600 !important;
}

.badge-tech-tag {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    padding: 0.32rem 0.75rem !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
}

.badge-tech-tag:hover {
    background: rgba(164, 210, 51, 0.15) !important;
    border-color: rgba(164, 210, 51, 0.4) !important;
    color: #ffffff !important;
}

.text-lime {
    color: #a4d233 !important;
}

/* ─── Global 60FPS Constellation Canvas (Visible across whole page from top to bottom) ─── */
.global-constellation-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 10 !important;
    opacity: 0.85;
}

/* Ensure interactive elements and cards maintain proper stacking above canvas */
.navbar, .container, .corp-card, .luxury-bento-card, .telemetry-strip, .assistant-trigger-btn, footer {
    position: relative;
    z-index: 20;
}

/* ─── Modal Stacking Guarantees (Must always sit far above canvas and backdrops) ─── */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1060 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1050 !important;
}

.modal-dialog {
    position: relative !important;
    z-index: 1065 !important;
    pointer-events: auto !important;
}

.modal-content {
    pointer-events: auto !important;
}

/* ─── Universal High-Contrast Badge Text Fix (Never unreadable green-on-green) ─── */
.badge.bg-success,
.badge.text-success,
.badge[class*="bg-success"],
.badge[class*="text-success"] {
    background: rgba(14, 20, 12, 0.94) !important;
    border: 1.5px solid rgba(164, 210, 51, 0.65) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 0 14px rgba(164, 210, 51, 0.22) !important;
}

.badge.bg-success *,
.badge.text-success *,
.badge[class*="bg-success"] *,
.badge[class*="text-success"] * {
    color: #ffffff !important;
}

.badge.bg-success i.text-success,
.badge i.text-success,
.badge .status-pulse-dot {
    color: #a4d233 !important;
}
