/* ============================================================
   AI-INTEGRATED FEATURES — visual polish & "AI vibe"
   Loaded as a separate stylesheet so it can be reverted easily.
   ============================================================ */

/* ----- 1. AI ORB IN HERO ----- */
.ai-orb {
    position: absolute;
    top: 18%;
    right: 6%;
    width: 220px;
    height: 220px;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transform: scale(0.6);
    animation: aiOrbAppear 1.4s 1.2s cubic-bezier(.2,.9,.3,1) forwards;
}
.ai-orb__core {
    position: absolute;
    inset: 30%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), rgba(120,200,255,0.7) 40%, rgba(40,90,200,0.6) 70%, rgba(10,20,60,0.4) 100%);
    box-shadow:
        0 0 40px rgba(80, 170, 255, 0.6),
        0 0 90px rgba(40, 110, 220, 0.45),
        inset 0 0 30px rgba(255,255,255,0.25);
    animation: aiOrbPulse 4s ease-in-out infinite;
    filter: blur(0.3px);
}
.ai-orb__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(120, 200, 255, 0.35);
    animation: aiOrbRotate 18s linear infinite;
}
.ai-orb__ring::before,
.ai-orb__ring::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(180, 230, 255, 0.95);
    box-shadow: 0 0 12px rgba(120, 200, 255, 0.9);
}
.ai-orb__ring::before { top: -4px; left: 50%; transform: translateX(-50%); }
.ai-orb__ring::after  { bottom: -4px; left: 50%; transform: translateX(-50%); background: rgba(120, 230, 255, 0.7); }

.ai-orb__ring--2 {
    inset: 8%;
    border-color: rgba(140, 180, 255, 0.25);
    animation: aiOrbRotate 26s linear infinite reverse;
    transform: rotateZ(45deg);
}
.ai-orb__ring--3 {
    inset: 16%;
    border-color: rgba(100, 220, 255, 0.2);
    animation: aiOrbRotate 12s linear infinite;
    transform: rotateZ(-30deg);
}

.ai-orb__particles {
    position: absolute;
    inset: 0;
}
.ai-orb__p {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(180, 230, 255, 0.85);
    box-shadow: 0 0 8px rgba(120, 200, 255, 0.9);
    animation: aiParticleFloat 6s ease-in-out infinite;
}
.ai-orb__p:nth-child(1) { top: 12%; left: 20%; animation-delay: 0s; }
.ai-orb__p:nth-child(2) { top: 70%; left: 80%; animation-delay: 1.2s; }
.ai-orb__p:nth-child(3) { top: 30%; left: 90%; animation-delay: 2.4s; }
.ai-orb__p:nth-child(4) { top: 85%; left: 15%; animation-delay: 3.6s; }
.ai-orb__p:nth-child(5) { top: 50%; left: 50%; animation-delay: 4.8s; }

.ai-orb__label {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(180, 220, 255, 0.85);
    white-space: nowrap;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-weight: 600;
}
.ai-orb__label::before {
    content: '●';
    color: #4cf;
    margin-right: 6px;
    animation: aiBlink 1.4s ease-in-out infinite;
}

@keyframes aiOrbAppear {
    to { opacity: 1; transform: scale(1); }
}
@keyframes aiOrbPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50%      { transform: scale(1.08); filter: brightness(1.2); }
}
@keyframes aiOrbRotate {
    to { transform: rotateZ(360deg); }
}
@keyframes aiParticleFloat {
    0%, 100% { transform: translate(0,0); opacity: 0.4; }
    50%      { transform: translate(8px,-12px); opacity: 1; }
}
@keyframes aiBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

@media (max-width: 992px) {
    .ai-orb { display: none; }
}

/* ----- 2. REACTIVE NEURAL NETWORK CANVAS ----- */
.ai-neural-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0.55;
    mix-blend-mode: screen;
}

/* ----- 3. AI TYPING CARET ----- */
#hero-typewriter::after {
    content: '▍';
    color: #6cf;
    margin-left: 3px;
    animation: aiCaretBlink 0.9s steps(1) infinite;
    font-weight: 300;
}
#hero-typewriter.done::after { content: ''; }
@keyframes aiCaretBlink {
    50% { opacity: 0; }
}

/* ----- 4. CMD+K COMMAND PALETTE ----- */
.ai-cmdk-trigger {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 998;
    background: rgba(18, 28, 60, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #cfe6ff;
    border: 1px solid rgba(120, 200, 255, 0.3);
    padding: 10px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0, 30, 80, 0.5);
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}
.ai-cmdk-trigger:hover {
    background: rgba(30, 60, 130, 0.95);
    transform: translateY(-2px);
    border-color: rgba(120, 200, 255, 0.6);
    box-shadow: 0 12px 36px rgba(0, 60, 160, 0.6);
}
.ai-cmdk-trigger__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.ai-cmdk-trigger kbd {
    background: rgba(255,255,255,0.12);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'SF Mono', Consolas, monospace;
    border: 1px solid rgba(255,255,255,0.15);
}

.ai-cmdk-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 30, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.ai-cmdk-overlay.open {
    opacity: 1;
    visibility: visible;
}
.ai-cmdk-panel {
    width: 90%;
    max-width: 620px;
    background: linear-gradient(180deg, rgba(20, 30, 65, 0.98), rgba(12, 20, 45, 0.98));
    border: 1px solid rgba(120, 200, 255, 0.25);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04);
    transform: translateY(-12px) scale(0.98);
    transition: transform 0.25s cubic-bezier(.2,.9,.3,1);
}
.ai-cmdk-overlay.open .ai-cmdk-panel { transform: translateY(0) scale(1); }

.ai-cmdk-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(120, 200, 255, 0.15);
}
.ai-cmdk-input-wrap svg {
    width: 20px;
    height: 20px;
    color: rgba(120, 200, 255, 0.8);
    flex-shrink: 0;
}
.ai-cmdk-input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}
.ai-cmdk-input::placeholder { color: rgba(180, 220, 255, 0.45); }
.ai-cmdk-thinking {
    color: rgba(180, 220, 255, 0.7);
    font-size: 12px;
    display: none;
    align-items: center;
    gap: 4px;
}
.ai-cmdk-thinking.active { display: inline-flex; }
.ai-cmdk-thinking span {
    width: 4px; height: 4px; border-radius: 50%; background: #6cf;
    animation: aiThinkDot 1.2s ease-in-out infinite;
}
.ai-cmdk-thinking span:nth-child(2) { animation-delay: 0.15s; }
.ai-cmdk-thinking span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiThinkDot {
    0%,100% { opacity: 0.3; transform: translateY(0); }
    50%     { opacity: 1; transform: translateY(-3px); }
}

.ai-cmdk-results {
    max-height: 50vh;
    overflow-y: auto;
    padding: 8px;
}
.ai-cmdk-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(180, 220, 255, 0.5);
    padding: 10px 14px 6px;
}
.ai-cmdk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(220, 235, 255, 0.95);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s;
}
.ai-cmdk-item:hover,
.ai-cmdk-item.active {
    background: rgba(80, 150, 255, 0.15);
    color: #fff;
}
.ai-cmdk-item__icon {
    width: 18px;
    height: 18px;
    color: rgba(120, 200, 255, 0.85);
    flex-shrink: 0;
}
.ai-cmdk-item__sub {
    margin-left: auto;
    font-size: 11px;
    color: rgba(180, 220, 255, 0.5);
}

.ai-cmdk-footer {
    padding: 10px 16px;
    border-top: 1px solid rgba(120, 200, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(180, 220, 255, 0.5);
    background: rgba(0,0,0,0.2);
}
.ai-cmdk-footer kbd {
    background: rgba(255,255,255,0.08);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: 'SF Mono', Consolas, monospace;
    margin: 0 3px;
}
.ai-cmdk-footer__brand {
    display: flex; align-items: center; gap: 6px;
}
.ai-cmdk-footer__brand::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: linear-gradient(135deg, #6cf, #36f);
    box-shadow: 0 0 8px #6cf;
}

/* ----- 5. SUGGESTED PROMPTS (chatbot) ----- */
.ai-suggested-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 14px 14px;
    border-top: 1px solid rgba(120,200,255,0.12);
}
.ai-prompt-chip {
    background: rgba(80, 150, 255, 0.12);
    border: 1px solid rgba(120, 200, 255, 0.25);
    color: rgba(220, 235, 255, 0.92);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.ai-prompt-chip:hover {
    background: rgba(80, 150, 255, 0.25);
    border-color: rgba(120, 200, 255, 0.55);
    transform: translateY(-1px);
}

/* ----- 6. AI GLOW ON SERVICE CARDS ----- */
.service-card,
.process-card,
.capability-card {
    position: relative;
}
.service-card::before,
.process-card::before,
.capability-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0deg,
        rgba(120, 200, 255, 0.0) 40deg,
        rgba(120, 200, 255, 0.55) 90deg,
        rgba(80, 150, 255, 0.4) 130deg,
        transparent 180deg,
        transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    animation: aiAngleSpin 6s linear infinite;
    z-index: 1;
}
.service-card:hover::before,
.process-card:hover::before,
.capability-card:hover::before { opacity: 1; }

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes aiAngleSpin {
    to { --angle: 360deg; }
}

/* ----- 7. STREAMING TEXT CARET (chatbot bubbles) ----- */
.botchat-msg.streaming::after {
    content: '▍';
    margin-left: 2px;
    color: #6cf;
    animation: aiCaretBlink 0.8s steps(1) infinite;
}

/* ----- 8. "BUILT WITH AI" TRUST STRIP ----- */
.ai-trust-strip {
    padding: 70px 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(80, 150, 255, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(120, 80, 255, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #0a1530 0%, #0d1d3f 50%, #0a1530 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(120, 200, 255, 0.15);
    border-bottom: 1px solid rgba(120, 200, 255, 0.15);
}
.ai-trust-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(120, 200, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 200, 255, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}
.ai-trust-strip__inner {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.ai-trust-strip__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(80, 150, 255, 0.15);
    border: 1px solid rgba(120, 200, 255, 0.4);
    color: #cfe6ff;
    border-radius: 100px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 22px;
}
.ai-trust-strip__badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: #6cf; box-shadow: 0 0 10px #6cf;
    animation: aiBlink 1.6s ease-in-out infinite;
}
.ai-trust-strip__title {
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.3;
}
.ai-trust-strip__title em {
    font-style: normal;
    background: linear-gradient(135deg, #6cf 0%, #a78bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ai-trust-strip__metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.ai-trust-strip__metric {
    text-align: center;
}
.ai-trust-strip__metric-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #6cf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.ai-trust-strip__metric-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(200, 220, 255, 0.85);
    margin-top: 10px;
    font-weight: 500;
}
.ai-trust-strip__stack {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(200, 220, 255, 0.85);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    padding-top: 22px;
    border-top: 1px solid rgba(120, 200, 255, 0.15);
}
.ai-trust-strip__stack span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ai-trust-strip__stack span::before {
    content: '◆'; color: #6cf; font-size: 8px;
}

@media (max-width: 768px) {
    .ai-trust-strip__metrics { grid-template-columns: repeat(2, 1fr); }
    .ai-trust-strip__title { font-size: 1.4rem; }
}

/* ----- 9. AI BADGES ON SERVICE CARDS ----- */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(80, 150, 255, 0.18);
    border: 1px solid rgba(120, 200, 255, 0.4);
    border-radius: 100px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #cfe6ff;
}
.ai-badge::before {
    content: '✦'; color: #6cf;
}

/* ----- 10. REDUCED MOTION ----- */
@media (prefers-reduced-motion: reduce) {
    .ai-orb,
    .ai-orb__core,
    .ai-orb__ring,
    .ai-orb__p,
    .service-card::before,
    .process-card::before,
    .capability-card::before {
        animation: none !important;
    }
}

/* ----- 11. SHOWCASE SECTION RE-THEMED TO NAVY ----- */
.showcase-section {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(80, 150, 255, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 80%, rgba(120, 80, 255, 0.10) 0%, transparent 55%),
        linear-gradient(180deg, #08122a 0%, #0c1a3d 50%, #08122a 100%) !important;
    position: relative;
}
.showcase-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(120, 200, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 200, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}
.showcase-section .container,
.showcase-section .cards-slider {
    position: relative;
    z-index: 1;
}

.showcase-section .showcase-title {
    color: #ffffff !important;
}
.showcase-section .showcase-title em {
    background: linear-gradient(135deg, #6cf 0%, #a78bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.showcase-section .showcase-subtitle {
    color: rgba(200, 220, 255, 0.7) !important;
}

/* Edge fade gradients to match navy */
.showcase-section .cards-slider::before {
    background: linear-gradient(90deg, #08122a 0%, transparent 100%) !important;
}
.showcase-section .cards-slider::after {
    background: linear-gradient(-90deg, #08122a 0%, transparent 100%) !important;
}

/* Restore color on showcase card images (no more grey filter) */
.showcase-section .showcase-card .card-image img {
    filter: saturate(1.05) brightness(0.9) contrast(1.05) !important;
}
.showcase-section .showcase-card:hover .card-image img {
    filter: saturate(1.15) brightness(1) contrast(1.05) !important;
}

/* Subtle card border + glow */
.showcase-section .showcase-card {
    border: 1px solid rgba(120, 200, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.showcase-section .showcase-card:hover {
    border-color: rgba(120, 200, 255, 0.45);
    box-shadow: 0 12px 36px rgba(0, 50, 150, 0.5);
}
