/* =====================================================================
   San Solutions — "AI 2050" Global Dark Theme
   Futuristic AI-solutions aesthetic (deep space violets/blues, glow,
   glassmorphism). Loaded AFTER bootstrap.min.css + style.css on every
   page to transform the entire site into one cohesive dark theme.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ai-bg: #05030f;
    --ai-bg-2: #0a0720;
    --ai-bg-3: #0e0b28;
    --ai-panel: #100c2a;
    --ai-panel-2: #15102f;
    --ai-glass: rgba(23, 18, 52, .55);
    --ai-line: rgba(255, 255, 255, .08);
    --ai-line-strong: rgba(255, 255, 255, .14);

    --ai-violet: #8b5cff;
    --ai-violet-2: #a855f7;
    --ai-indigo: #6366f1;
    --ai-blue: #3b82f6;
    --ai-cyan: #22d3ee;

    --ai-text: #c5c1e0;
    --ai-text-dim: #8b87ad;
    --ai-white: #ffffff;

    --ai-grad: linear-gradient(135deg, #a855f7 0%, #6366f1 55%, #3b82f6 110%);
    --ai-grad-soft: linear-gradient(135deg, #7c3aed 0%, #4f46e5 60%, #2563eb 120%);
    --ai-radius: 20px;
    --ai-shadow: 0 30px 70px rgba(0, 0, 0, .55);
    --ai-glow: 0 0 40px rgba(139, 92, 255, .35);
}

/* ---------------- Responsive hardening (all pages) ---------------- */
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe, svg { max-width: 100%; height: auto; }
img { object-fit: cover; }
.table-responsive { -webkit-overflow-scrolling: touch; }
table { max-width: 100%; }
pre, code { white-space: pre-wrap; word-wrap: break-word; }

@media (max-width: 991.98px) {
    .display-1 { font-size: 3.2rem; }
    .display-2 { font-size: 2.8rem; }
    .display-3 { font-size: 2.4rem; }
    .page-header .display-2, .page-header h1 { font-size: 2.6rem; }
    .py-5.my-5 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
}
@media (max-width: 575.98px) {
    h1, .h1 { font-size: 1.9rem; }
    .display-1, .display-2, .display-3 { font-size: 2.1rem; }
    .page-header { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .container, .container-fluid { padding-left: 16px; padding-right: 16px; }
    .btn-lg { padding: .6rem 1.3rem; font-size: 1rem; }
}

/* ---------------- Base ---------------- */
html { scroll-behavior: smooth; }

body {
    background-color: var(--ai-bg);
    background-image:
        radial-gradient(900px 520px at 50% -8%, rgba(124, 58, 237, .38), transparent 60%),
        radial-gradient(700px 420px at 88% 6%, rgba(37, 99, 235, .22), transparent 60%),
        radial-gradient(700px 460px at 6% 14%, rgba(168, 85, 247, .18), transparent 60%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--ai-text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--ai-white);
    font-weight: 700;
    letter-spacing: -.01em;
}

p { color: var(--ai-text); }
a { color: var(--ai-violet); }
a:hover { color: var(--ai-violet-2); }
hr { border-color: var(--ai-line); opacity: 1; }

::selection { background: rgba(139, 92, 255, .35); color: #fff; }

/* Spinner on dark */
#spinner { background: var(--ai-bg) !important; }

/* ---------------- Bootstrap utility overrides ---------------- */
.bg-light { background-color: var(--ai-bg-2) !important; }
.bg-white { background-color: var(--ai-panel) !important; }
.bg-dark { background-color: #060411 !important; }
.bg-primary { background: var(--ai-bg-3) !important; }
.bg-secondary { background: var(--ai-bg-3) !important; }

.text-dark { color: var(--ai-white) !important; }
.text-white { color: var(--ai-white) !important; }
.text-light { color: var(--ai-text) !important; }
.text-white-50 { color: var(--ai-text-dim) !important; }
.text-muted, .text-body { color: var(--ai-text-dim) !important; }
.text-primary { color: var(--ai-violet) !important; }
.text-secondary { color: var(--ai-cyan) !important; }

.border, .border-top, .border-bottom, .border-start, .border-end { border-color: var(--ai-line) !important; }
.shadow, .shadow-sm, .shadow-lg { box-shadow: var(--ai-shadow) !important; }
.rounded, .rounded-3 { border-radius: 14px !important; }

/* Cards / panels that used light bg */
.card {
    background: var(--ai-panel);
    border: 1px solid var(--ai-line);
    color: var(--ai-text);
    border-radius: var(--ai-radius);
}
.card .card-body, .card .card-title, .card h1, .card h2, .card h3, .card h4, .card h5 { color: var(--ai-white); }

/* ---------------- Buttons ---------------- */
.btn { font-family: 'Inter', sans-serif; font-weight: 600; }

.btn-primary,
.btn-secondary {
    background: var(--ai-grad) !important;
    background-size: 160% 160% !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(99, 102, 241, .35);
    transition: transform .3s ease, box-shadow .3s ease, background-position .6s ease;
}
.btn-primary:hover,
.btn-secondary:hover {
    background-position: 100% 0 !important;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(139, 92, 255, .45);
    color: #fff !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-light,
.btn-outline-dark {
    border: 1px solid var(--ai-line-strong) !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .04) !important;
    backdrop-filter: blur(6px);
    transition: .3s;
}
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-light:hover,
.btn-outline-dark:hover {
    background: var(--ai-grad) !important;
    border-color: transparent !important;
    color: #fff !important;
    transform: translateY(-3px);
}

.btn-light {
    background: #fff !important;
    color: #1a1240 !important;
    border: 0 !important;
    font-weight: 600;
}
.btn-light:hover { transform: translateY(-3px); color: #1a1240 !important; }

.btn-square, .btn-sm-square, .btn-md-square, .btn-lg-square { border-radius: 12px; }
.bg-light.btn, .btn.bg-light { background: rgba(255, 255, 255, .06) !important; }

/* Back to top */
.back-to-top { background: var(--ai-grad) !important; border: 0; box-shadow: var(--ai-glow); }

/* ---------------- Forms ---------------- */
.form-control, .form-select {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--ai-line);
    color: #fff;
    border-radius: 12px;
    padding: .7rem 1rem;
}
.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, .06);
    border-color: var(--ai-violet);
    box-shadow: 0 0 0 .2rem rgba(139, 92, 255, .2);
    color: #fff;
}
.form-control::placeholder { color: var(--ai-text-dim); }
.form-floating > label { color: var(--ai-text-dim); }
.form-select option { background: var(--ai-panel); color: #fff; }

/* ---------------- Page header (inner pages) ---------------- */
.page-header {
    background:
        radial-gradient(700px 380px at 50% -30%, rgba(124, 58, 237, .5), transparent 60%),
        linear-gradient(180deg, #0a0720 0%, #05030f 100%) !important;
    border-bottom: 1px solid var(--ai-line);
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -60%;
    width: 140%; height: 100%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(59, 130, 246, .28), transparent 70%);
    pointer-events: none;
}
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a { color: var(--ai-text) !important; }
.page-header .breadcrumb-item a:hover { color: var(--ai-violet); }
.page-header .breadcrumb-item.active,
.page-header .breadcrumb-item[aria-current] { color: var(--ai-violet) !important; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: var(--ai-text-dim); }

/* ---------------- Section rhythm helpers ---------------- */
.ai-eyebrow {
    display: inline-block;
    color: #d7c9ff;
    background: rgba(139, 92, 255, .14);
    border: 1px solid rgba(139, 92, 255, .3);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.text-gradient {
    background: linear-gradient(120deg, #c4b5fd, #818cf8 45%, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------------- Template section restyles (style.css) ---------------- */

/* Services boxes */
.services .services-item,
.service-item {
    background: var(--ai-panel) !important;
    border: 1px solid var(--ai-line);
    box-shadow: none !important;
    color: var(--ai-text);
}
.service-icon { background: rgba(139, 92, 255, .12) !important; }

/* Team */
.team-item {
    background: var(--ai-panel) !important;
    border-top: 30px solid var(--ai-violet) !important;
    border-left: 1px solid var(--ai-line);
    border-right: 1px solid var(--ai-line);
    border-bottom: 1px solid var(--ai-line);
}
.team-content::before { background: var(--ai-violet) !important; }
.team-img { border-color: var(--ai-panel) !important; }
.team-img img { border-color: var(--ai-violet) !important; }
.team-item:hover h4 { color: var(--ai-violet) !important; }

/* Uniform team member photos (about + team pages): identical circles */
.team-img img {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    object-fit: cover;
    object-position: center 20%;
}
/* Equalise the name/designation area so single- and two-line names align */
.team-name {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Testimonials */
.testimonial-item { background: var(--ai-panel) !important; border: 1px solid var(--ai-line); }
.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--ai-panel-2) !important;
    box-shadow: var(--ai-glow) !important;
    border-color: rgba(139, 92, 255, .3);
}
.testimonial-carousel .owl-dot { background: rgba(255, 255, 255, .2) !important; }
.testimonial-carousel .owl-dot.active { background: var(--ai-violet) !important; }

/* Owl nav buttons (team etc.) */
.owl-nav .owl-prev, .owl-nav .owl-next { background: var(--ai-grad) !important; color: #fff !important; }
.owl-nav .owl-prev:hover, .owl-nav .owl-next:hover { filter: brightness(1.15); }

/* Contact */
.contact-detail::before { background: linear-gradient(180deg, rgba(124,58,237,.25), transparent) !important; }
.contact-map, .contact-form { background: var(--ai-panel) !important; border: 1px solid var(--ai-line); border-radius: var(--ai-radius); }
.contact-info-item { background: var(--ai-bg-3) !important; border: 1px solid var(--ai-line); border-radius: var(--ai-radius); }
.contact-info-item .border { border-color: var(--ai-violet) !important; background: var(--ai-panel); }

/* Blog */
.blog-item { background: var(--ai-panel) !important; border: 1px solid var(--ai-line); border-radius: var(--ai-radius); overflow: hidden; }

/* Counter numbers */
.counter-value, .counter h1 { color: var(--ai-white) !important; }

/* Generic light rounded content blocks */
.rounded.bg-light, .bg-light.rounded { border: 1px solid var(--ai-line); }
.icon-box i { color: var(--ai-violet) !important; }

/* Accordions (FAQs) */
.accordion-item { background: var(--ai-panel); border: 1px solid var(--ai-line); }
.accordion-button {
    background: var(--ai-panel);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}
.accordion-button:not(.collapsed) { background: var(--ai-bg-3); color: #fff; box-shadow: none; }
.accordion-button::after { filter: invert(1) brightness(1.5); }
.accordion-body { color: var(--ai-text); }

/* Tables */
.table { color: var(--ai-text); }
.table th, .table td { border-color: var(--ai-line); }

/* Lists / misc text on light backgrounds now dark */
.list-group-item { background: var(--ai-panel); color: var(--ai-text); border-color: var(--ai-line); }

/* ---------------- NAVBAR (common-nav.html) ---------------- */
.ai-topbar {
    background: #060411;
    border-bottom: 1px solid var(--ai-line);
}
.ai-topbar small, .ai-topbar a { color: var(--ai-text-dim) !important; }
.ai-topbar a:hover { color: var(--ai-violet) !important; }
.ai-topbar .top-link a {
    background: rgba(255, 255, 255, .06) !important;
    color: var(--ai-text) !important;
    border: 1px solid var(--ai-line);
}
.ai-topbar .top-link a:hover { background: var(--ai-grad) !important; color: #fff !important; border-color: transparent; }
.ai-topbar .top-link a i { color: inherit !important; }

.ai-navbar-wrap {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(8, 5, 22, .72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ai-line);
}
.ai-navbar .navbar-brand h1 { font-family: 'Outfit', sans-serif; font-size: 1.6rem; }
.ai-navbar .navbar-brand h1 span { color: var(--ai-violet) !important; }
.ai-navbar .nav-link { color: var(--ai-text) !important; font-size: 16px !important; font-weight: 500; }
.ai-navbar .nav-link:hover, .ai-navbar .nav-link.active { color: #fff !important; }
.ai-navbar .nav-link.active { position: relative; }
.ai-navbar .nav-link.active::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px;
    background: var(--ai-grad); border-radius: 2px;
}
.ai-navbar .navbar-toggler { border-color: var(--ai-line); }
.ai-btn-cta {
    background: var(--ai-grad);
    color: #fff;
    border-radius: 50px;
    padding: 9px 22px;
    font-weight: 600;
    border: 0;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(99, 102, 241, .35);
    transition: .3s;
}
.ai-btn-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(139, 92, 255, .5); }
.ai-navbar .navbar-collapse { background: transparent; }
@media (max-width: 991.98px) {
    .ai-navbar .navbar-collapse {
        background: var(--ai-panel);
        border: 1px solid var(--ai-line);
        border-radius: 14px;
        padding: 12px 16px;
        margin-top: 10px;
    }
}

/* ---------------- FOOTER (common-footer.html) ---------------- */
.ai-footer {
    background:
        radial-gradient(700px 340px at 80% 0%, rgba(99, 102, 241, .18), transparent 60%),
        #060411 !important;
    border-top: 1px solid var(--ai-line);
}
.ai-footer .footer-brand span { color: var(--ai-violet); }
.ai-footer a { color: var(--ai-text) !important; }
.ai-footer a:hover { color: var(--ai-violet) !important; }
.ai-footer .footer-head { color: #fff !important; font-family: 'Outfit', sans-serif; }
.ai-footer .social-link a {
    width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--ai-line);
    color: var(--ai-text) !important; transition: .3s;
}
.ai-footer .social-link a:hover { background: var(--ai-grad); color: #fff !important; border-color: transparent; transform: translateY(-3px); }
.ai-footer .footer-bottom { border-top: 1px solid var(--ai-line); }
