/* =====================================================================
   San Solutions — Homepage components (AI 2050 dark theme)
   Loaded after theme.css on index.html
   ===================================================================== */

/* ---------------- HERO (orbital glow) ---------------- */
.ai-hero {
    position: relative;
    padding: 130px 0 90px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(760px 520px at 50% -12%, rgba(139, 92, 255, .55), transparent 60%),
        radial-gradient(900px 500px at 82% 0%, rgba(56, 89, 235, .35), transparent 60%),
        linear-gradient(180deg, #0a0622 0%, #070417 60%, #05030f 100%);
}
/* glowing planet horizon arc */
.ai-hero-arc {
    position: absolute;
    left: 50%;
    bottom: -46%;
    width: 130%;
    max-width: 1500px;
    aspect-ratio: 1 / 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 8%, rgba(76, 130, 255, .28), rgba(10, 8, 30, 0) 42%);
    box-shadow:
        0 0 120px 20px rgba(59, 130, 246, .35),
        inset 0 3px 40px rgba(147, 197, 253, .35);
    border-top: 2px solid rgba(165, 200, 255, .85);
    pointer-events: none;
}
.ai-hero-arc::after {
    content: "";
    position: absolute;
    left: 12%; right: 12%; top: -1px; height: 3px;
    background: linear-gradient(90deg, transparent, #a9c4ff, #7cc4ff, transparent);
    filter: blur(2px);
}
.ai-hero .container { position: relative; z-index: 2; }

.ai-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e6ddff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .04em;
    margin-bottom: 26px;
    backdrop-filter: blur(8px);
}
.ai-hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #fff;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.06;
    letter-spacing: -.02em;
    margin-bottom: 22px;
}
.ai-hl {
    display: inline-block;
    background: var(--ai-grad-soft);
    padding: 0 .28em;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(99, 102, 241, .5);
    transform: rotate(-1deg);
}
.ai-hero-sub {
    color: #b9b6d3;
    font-size: 1.14rem;
    max-width: 620px;
    margin: 0 auto 34px;
    line-height: 1.7;
}
.ai-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 60px; }

/* brand / partners strip */
.ai-brands {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 46px;
}
.ai-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d7d4ec;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    opacity: .82;
    transition: .3s;
}
.ai-brand:hover { opacity: 1; color: #fff; transform: translateY(-2px); }
.ai-brand i { color: var(--ai-violet); font-size: 1.15rem; }

/* ---------------- Generic section head ---------------- */
.ai-section { padding: 100px 0; position: relative; }
.ai-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.ai-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; margin: 16px 0 12px; }
.ai-lead { color: var(--ai-text-dim); font-size: 1.08rem; margin: 0; }

/* ---------------- ABOUT band ---------------- */
.ai-about { position: relative; padding: 40px 0 100px; }
.ai-panel {
    background: linear-gradient(160deg, rgba(30, 22, 66, .7), rgba(12, 9, 32, .7));
    border: 1px solid var(--ai-line);
    border-radius: 24px;
    padding: 50px 46px;
    position: relative;
    overflow: hidden;
    height: 100%;
    backdrop-filter: blur(6px);
}
.ai-panel-watermark {
    position: absolute;
    right: 30px;
    bottom: -18px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 1;
    color: rgba(255, 255, 255, .04);
    letter-spacing: -.03em;
    pointer-events: none;
}
.ai-about p { color: var(--ai-text-dim); }

.ai-card-gradient {
    background: linear-gradient(150deg, #8b5cff 0%, #6d5dfc 45%, #4f7cff 100%);
    border-radius: 22px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(99, 102, 241, .45);
    height: 100%;
}
.ai-card-gradient h4 { color: #fff; }
.ai-card-gradient p { color: rgba(255, 255, 255, .82); }
.ai-card-gradient .ai-orb {
    width: 84px; height: 84px; border-radius: 20px;
    background: conic-gradient(from 120deg, #22d3ee, #6366f1, #a855f7, #22d3ee);
    filter: blur(.3px) saturate(1.2);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, .5), 0 10px 30px rgba(0, 0, 0, .35);
    animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-mini-btn {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
}
.ai-mini-btn:hover { background: #fff; color: #4f46e5; }

.ai-card-dark {
    background: var(--ai-panel);
    border: 1px solid var(--ai-line);
    border-radius: 22px;
    padding: 30px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ai-card-dark .ai-ok {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    background: var(--ai-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------------- SERVICES grid ---------------- */
.ai-service {
    display: block;
    height: 100%;
    background: var(--ai-panel);
    border: 1px solid var(--ai-line);
    border-radius: 20px;
    padding: 34px 30px;
    text-decoration: none;
    transition: transform .35s ease, border-color .35s ease, background .35s ease;
    position: relative;
    overflow: hidden;
}
.ai-service:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 255, .4);
    background: linear-gradient(160deg, rgba(40, 28, 86, .55), rgba(15, 11, 40, .7));
}
.ai-service-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(139, 92, 255, .14);
    color: var(--ai-violet);
    font-size: 22px;
    margin-bottom: 22px;
    transition: .35s;
}
.ai-service:hover .ai-service-icon { background: var(--ai-grad); color: #fff; }
.ai-service h4 { font-size: 1.25rem; margin-bottom: 10px; }
.ai-service p { color: var(--ai-text-dim); margin: 0; font-size: .96rem; }

/* feature/orb visual card */
.ai-orb-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 45%, #3b2a7a, #140f34 70%);
    border: 1px solid var(--ai-line);
}
.ai-orb-card .ai-orb-visual {
    width: 190px; height: 190px; border-radius: 50%;
    background: conic-gradient(from 210deg, #f0abfc, #818cf8, #22d3ee, #a855f7, #f0abfc);
    filter: blur(6px);
    opacity: .85;
    animation: spin 18s linear infinite;
}
.ai-orb-card .ai-orb-ring {
    position: absolute;
    width: 210px; height: 210px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .35);
    animation: spin 30s linear infinite reverse;
}
.ai-orb-card .ai-orb-label {
    position: absolute;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
}
.ai-orb-card .ai-orb-emoji {
    position: absolute;
    font-size: 34px;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5));
}
.ai-avatars { display: flex; align-items: center; }
.ai-avatars img {
    width: 38px; height: 38px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--ai-panel); margin-left: -10px;
}
.ai-avatars img:first-child { margin-left: 0; }
.ai-avatars .ai-av-more {
    width: 38px; height: 38px; border-radius: 50%; margin-left: -10px;
    background: var(--ai-grad); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; border: 2px solid var(--ai-panel);
}

/* ---------------- Stats ---------------- */
.ai-stats { padding: 30px 0 90px; }
.ai-stat {
    text-align: center;
    background: var(--ai-panel);
    border: 1px solid var(--ai-line);
    border-radius: 18px;
    padding: 30px 18px;
    transition: .35s;
}
.ai-stat:hover { border-color: rgba(139, 92, 255, .4); transform: translateY(-5px); }
.ai-stat-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    line-height: 1;
    background: linear-gradient(120deg, #fff, #b7a6ff);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ai-stat p { color: var(--ai-text-dim); margin: 10px 0 0; font-weight: 500; }

/* ---------------- Projects ---------------- */
.ai-work { display: block; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--ai-line); }
.ai-work img { width: 100%; height: 270px; object-fit: cover; transition: transform .6s ease; opacity: .9; }
.ai-work:hover img { transform: scale(1.08); opacity: 1; }
.ai-work-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px; background: linear-gradient(to top, rgba(7, 5, 20, .95) 8%, rgba(7, 5, 20, .3) 50%, transparent 78%);
}
.ai-work-overlay h5 { color: #fff; margin: 8px 0 0; }
.ai-work-tag {
    align-self: flex-start; background: var(--ai-grad); color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: .04em;
}

/* ---------------- Testimonials ---------------- */
.ai-quote {
    background: var(--ai-panel); border: 1px solid var(--ai-line); border-radius: 20px;
    padding: 34px 30px; height: 100%; position: relative;
}
.ai-quote .qm { color: rgba(139, 92, 255, .3); font-size: 34px; position: absolute; top: 24px; right: 28px; }
.ai-quote p { color: #d9d6ee; line-height: 1.7; margin-bottom: 22px; }
.ai-quote .qa { display: flex; align-items: center; gap: 14px; }
.ai-quote .qa img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.ai-quote .qa strong { display: block; color: #fff; font-family: 'Outfit', sans-serif; }
.ai-quote .qa span { color: var(--ai-violet); font-size: 13.5px; font-weight: 600; }
.testimonial-carousel-home .owl-dots { text-align: center; margin-top: 34px; }
.testimonial-carousel-home .owl-dot span { display: inline-block; width: 11px; height: 11px; margin: 0 5px; border-radius: 50%; background: rgba(255,255,255,.2); transition: .3s; }
.testimonial-carousel-home .owl-dot.active span { width: 28px; border-radius: 8px; background: var(--ai-violet); }

/* ---------------- CTA ---------------- */
.ai-cta { padding: 0 0 100px; }
.ai-cta-inner {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 60px 54px;
    text-align: center;
    background:
        radial-gradient(600px 300px at 50% -30%, rgba(168, 85, 247, .5), transparent 60%),
        linear-gradient(150deg, #241a5e, #120d34);
    border: 1px solid rgba(139, 92, 255, .3);
    box-shadow: var(--ai-glow);
}
.ai-cta-inner h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.ai-cta-inner p { color: #c5c1e0; max-width: 560px; margin: 0 auto 26px; }
.ai-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
    .ai-section, .ai-about { padding: 70px 0; }
    .ai-panel { padding: 40px 28px; }
    .ai-hero { padding: 110px 0 80px; }
}
