/* ================================================================
   Mission & Vision — Immersive Premium Section
   Design:  Deep dark navy + Glassmorphism cards + Cyan accents
   ================================================================ */

/* ── Section Base ── */
.mv-section {
    background: linear-gradient(160deg, #040d21 0%, #071428 35%, #0a1a35 65%, #071428 100%);
    padding-block: 5rem;
    position: relative;
}

/* ── Animated background glows ── */
.mv-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.35;
    animation: mv-glow-pulse 8s ease-in-out infinite;
}
.mv-glow-1 {
    width: 600px; height: 600px;
    top: -150px; left: -100px;
    background: radial-gradient(circle, rgba(0, 98, 255, 0.5), transparent 70%);
    animation-delay: 0s;
}
.mv-glow-2 {
    width: 500px; height: 500px;
    bottom: -100px; right: -50px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.35), transparent 70%);
    animation-delay: 3s;
}
@keyframes mv-glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.08); }
}

/* ── Grid overlay (subtle blueprint dots) ── */
.mv-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(0, 180, 255, 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

/* ── Floating particles ── */
.mv-particles { position: absolute; inset: 0; pointer-events: none; }
.mv-particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: #00c8ff;
    animation: mv-float var(--d, 0s) 4s ease-in-out infinite;
    box-shadow: 0 0 10px #00c8ff;
    opacity: 0.6;
}
@keyframes mv-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-18px) scale(1.2); opacity: 1; }
}

/* ── Header ── */
.mv-header {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.mv-header.is-visible {
    opacity: 1;
    transform: none;
}

.mv-eyebrow {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #00c8ff;
    opacity: 0.85;
}

.mv-main-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
}

.mv-title-underline {
    width: 64px;
    height: 3px;
    margin: 1rem auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #0062ff, #00c8ff);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.5);
}

/* ── CTA Button ── */
.mv-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid rgba(0, 200, 255, 0.4);
    color: #fff;
    background: rgba(0, 98, 255, 0.15);
    backdrop-filter: blur(8px);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(0, 98, 255, 0.1);
}
.mv-cta-btn:hover {
    background: rgba(0, 98, 255, 0.4);
    border-color: rgba(0, 200, 255, 0.7);
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Cards Grid ── */
.mv-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

@media (max-width: 1199.98px) {
    .mv-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 599.98px) {
    .mv-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Value Card ── */
.mv-value-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(0, 180, 255, 0.12);
    backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    cursor: default;

    /* entry animation */
    opacity: 0;
    transform: translateY(40px);
}
.mv-value-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.mv-value-card:nth-child(1) { transition-delay: 0.1s; }
.mv-value-card:nth-child(2) { transition-delay: 0.2s; }
.mv-value-card:nth-child(3) { transition-delay: 0.3s; }
.mv-value-card:nth-child(4) { transition-delay: 0.4s; }

.mv-value-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 200, 255, 0.4);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 180, 255, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Card glow on hover */
.mv-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 200, 255, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}
.mv-value-card:hover .mv-card-glow {
    opacity: 1;
}

/* ── CAD-style corner brackets ── */
.mv-card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.mv-value-card:hover .mv-card-corner { opacity: 1; }

.mv-corner-tl {
    top: 10px; left: 10px;
    border-top: 2px solid #00c8ff;
    border-left: 2px solid #00c8ff;
    border-radius: 2px 0 0 0;
}
.mv-corner-br {
    bottom: 10px; right: 10px;
    border-bottom: 2px solid #00c8ff;
    border-right: 2px solid #00c8ff;
    border-radius: 0 0 2px 0;
}

/* ── Card Inner content ── */
.mv-card-inner {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Icon ── */
.mv-card-icon-wrap {
    position: relative;
    display: inline-flex;
    margin-bottom: 1.25rem;
    width: fit-content;
}
.mv-card-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 98, 255, 0.25), rgba(0, 200, 255, 0.15));
    border: 1px solid rgba(0, 200, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #00c8ff;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 98, 255, 0.2);
    position: relative;
    z-index: 1;
}
.mv-value-card:hover .mv-card-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 12px 30px rgba(0, 200, 255, 0.35);
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 98, 255, 0.5), rgba(0, 200, 255, 0.4));
}

/* Pinging ring */
.mv-card-icon-ring {
    position: absolute;
    inset: -6px;
    border-radius: 20px;
    border: 1px solid rgba(0, 200, 255, 0.3);
    animation: mv-ring-ping 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes mv-ring-ping {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ── Card Text ── */
.mv-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e8f4ff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}
.mv-value-card:hover .mv-card-title {
    color: #ffffff;
}

.mv-card-lead {
    font-size: 0.82rem;
    color: rgba(180, 210, 240, 0.65);
    line-height: 1.55;
    margin-bottom: 1rem;
    flex-grow: 0;
}

/* ── List items ── */
.mv-card-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex-grow: 1;
}
.mv-card-list li {
    font-size: 0.83rem;
    color: rgba(200, 225, 255, 0.75);
    line-height: 1.45;
    padding-left: 1.1rem;
    position: relative;
    transition: color 0.25s ease, transform 0.25s ease;
}
.mv-card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #00c8ff;
    box-shadow: 0 0 6px #00c8ff;
}
.mv-value-card:hover .mv-card-list li {
    color: rgba(220, 240, 255, 0.9);
}
.mv-value-card:hover .mv-card-list li:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* ── Value Tags ── */
.mv-value-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-grow: 1;
}
.mv-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #a0d8f0;
    background: rgba(0, 180, 255, 0.1);
    border: 1px solid rgba(0, 180, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mv-value-card:hover .mv-tag:hover {
    background: rgba(0, 180, 255, 0.25);
    border-color: rgba(0, 200, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 255, 0.2);
}

/* ── Bottom accent line ── */
.mv-card-accent-line {
    height: 2px;
    border-radius: 2px;
    margin-top: 1.25rem;
    background: linear-gradient(90deg, #0062ff, #00c8ff, transparent);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.5;
}
.mv-value-card:hover .mv-card-accent-line {
    transform: scaleX(1);
    opacity: 1;
}

/* Card color accent per type */
.mv-value-card[data-card="quality"] .mv-card-icon { color: #4ade80; background: linear-gradient(135deg, rgba(74,222,128,0.2), rgba(16,185,129,0.1)); box-shadow: 0 8px 20px rgba(16,185,129,0.2); }
.mv-value-card[data-card="quality"] .mv-card-list li::before { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.mv-value-card[data-card="quality"] .mv-card-accent-line { background: linear-gradient(90deg, #16a34a, #4ade80, transparent); }
.mv-value-card[data-card="quality"]:hover .mv-card-icon { background: linear-gradient(135deg, rgba(74,222,128,0.4), rgba(16,185,129,0.3)); box-shadow: 0 12px 30px rgba(74,222,128,0.35); }

.mv-value-card[data-card="vision"] .mv-card-icon { color: #a78bfa; background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(139,92,246,0.1)); box-shadow: 0 8px 20px rgba(139,92,246,0.2); }
.mv-value-card[data-card="vision"] .mv-card-list li::before { background: #a78bfa; box-shadow: 0 0 6px #a78bfa; }
.mv-value-card[data-card="vision"] .mv-card-accent-line { background: linear-gradient(90deg, #7c3aed, #a78bfa, transparent); }
.mv-value-card[data-card="vision"]:hover .mv-card-icon { background: linear-gradient(135deg, rgba(167,139,250,0.4), rgba(139,92,246,0.3)); box-shadow: 0 12px 30px rgba(167,139,250,0.35); }

.mv-value-card[data-card="mission"] .mv-card-icon { color: #fb923c; background: linear-gradient(135deg, rgba(251,146,60,0.2), rgba(234,88,12,0.1)); box-shadow: 0 8px 20px rgba(234,88,12,0.2); }
.mv-value-card[data-card="mission"] .mv-card-list li::before { background: #fb923c; box-shadow: 0 0 6px #fb923c; }
.mv-value-card[data-card="mission"] .mv-card-accent-line { background: linear-gradient(90deg, #ea580c, #fb923c, transparent); }
.mv-value-card[data-card="mission"]:hover .mv-card-icon { background: linear-gradient(135deg, rgba(251,146,60,0.4), rgba(234,88,12,0.3)); box-shadow: 0 12px 30px rgba(251,146,60,0.35); }

/* ── Scroll reveal via IntersectionObserver ── */

/* ── Responsive for mobile ── */
@media (max-width: 767.98px) {
    .mv-section { padding-block: 3.5rem; }
    .mv-main-title { font-size: 1.7rem; }
    .mv-card-inner { padding: 1.5rem 1.2rem 1.25rem; }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
    .mv-bg-glow, .mv-particle, .mv-card-icon-ring,
    .mv-value-card, .mv-header,
    .mv-card-accent-line { animation: none !important; transition: none !important; }
    .mv-value-card, .mv-header { opacity: 1 !important; transform: none !important; }
}
