/* =============================================
   We Inspect Page — Icon-Based Redesign
   Bharat Vision Automation
   ============================================= */

/* ── Page Fade-in ─────────────────────────── */
body {
    animation: pageLoad 0.55s ease forwards;
}
@keyframes pageLoad {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Floating Background ──────────────────── */
.floating-graphics {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.float-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,102,204,0.06), transparent 70%);
    animation: floatBg 10s ease-in-out infinite;
}
.circle-1 { width: 560px; height: 560px; top: -140px; left: -160px; animation-delay: 0s; }
.circle-2 { width: 380px; height: 380px; bottom: -100px; right: -120px; animation-delay: 4s; }
.circle-3 { width: 260px; height: 260px; top: 45%; left: 58%; animation-delay: 7s; }

@keyframes floatBg {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-28px) scale(1.04); }
}

/* ── Page Header ──────────────────────────── */
.page-header { position: relative; z-index: 1; }
.main-title {
    font-size: 50px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.main-title .highlight { color: #7ec8ff; }
.subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

/* ── Categories Section ───────────────────── */
.inspection-categories {
    padding: 90px 0 100px;
    background: #f4f7fb;
    position: relative;
    z-index: 1;
}
.inspection-categories::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,102,204,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,102,204,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* ── Section Heading ──────────────────────── */
.section-intro {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}
.section-intro h2 {
    font-size: 38px;
    font-weight: 800;
    color: #0d1b2e;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
}
.section-intro h2 span { color: #0066cc; }
.section-intro p {
    font-size: 16.5px;
    color: #5a6a80;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ── Grid ─────────────────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

/* ── Category Card ────────────────────────── */
.category-card {
    background: #fff;
    border-radius: 22px;
    padding: 52px 32px 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    border: 1.5px solid rgba(0,102,204,0.1);
    box-shadow: 0 6px 28px rgba(0,102,204,0.09);
    transition: transform 0.38s cubic-bezier(0.34,1.3,0.64,1),
                box-shadow 0.38s ease,
                border-color 0.38s ease;
    opacity: 0;
    transform: translateY(40px);
}
.category-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.65s ease,
                transform 0.65s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.38s ease,
                border-color 0.38s ease;
}
.category-card:nth-child(1).revealed { transition-delay: 0s;    }
.category-card:nth-child(2).revealed { transition-delay: 0.13s; }
.category-card:nth-child(3).revealed { transition-delay: 0.26s; }

.category-card:hover {
    transform: translateY(-14px);
    box-shadow: 0 28px 70px rgba(0,102,204,0.22);
    border-color: rgba(0,102,204,0.35);
}

/* ── Icon Wrapper ─────────────────────────── */
.icon-wrapper {
    position: relative;
    width: 136px;
    height: 136px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* pulsing outer ring */
.icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px solid rgba(0,102,204,0.15);
    animation: ringPulse 3.2s ease-in-out infinite;
}
.icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,102,204,0.1);
    animation: ringPulse 3.2s ease-in-out infinite 0.5s;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1);    opacity: 0.55; }
    50%       { transform: scale(1.09); opacity: 1;   }
}

/* icon circle */
.icon-circle {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e6f0ff, #f0f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow:
        0 10px 32px rgba(0,102,204,0.18),
        inset 0 2px 8px rgba(255,255,255,0.95);
    transition: transform 0.38s cubic-bezier(0.34,1.3,0.64,1),
                box-shadow 0.38s ease;
    /* subtle float */
    animation: iconFloat 4.5s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0);    }
    50%       { transform: translateY(-7px); }
}

.category-card:hover .icon-circle {
    transform: scale(1.12) rotate(-6deg);
    box-shadow:
        0 20px 55px rgba(0,102,204,0.36),
        inset 0 2px 8px rgba(255,255,255,0.95);
    animation: none;
}

.icon-circle svg {
    width: 62px;
    height: 62px;
    overflow: visible;
}

/* ── Card Text ────────────────────────────── */
.card-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: #0066cc;
    margin-bottom: 10px;
    opacity: 0.7;
}
.card-title {
    font-size: 24px;
    font-weight: 800;
    color: #0d1b2e;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}
.category-card:hover .card-title { color: #0066cc; }

.card-divider {
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #00a3ff);
    border-radius: 2px;
    margin: 0 auto 18px;
    transition: width 0.4s ease;
}
.category-card:hover .card-divider { width: 60px; }

.card-description {
    font-size: 14.5px;
    color: #5a6a80;
    line-height: 1.8;
    margin: 0 0 28px;
    flex-grow: 1;
}

/* ── Learn More Button ────────────────────── */
.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0066cc, #0088ff);
    color: #fff;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(0,102,204,0.32);
    transition: all 0.35s ease;
}
.learn-more-btn:hover {
    background: linear-gradient(135deg, #0052a3, #0066cc);
    gap: 16px;
    box-shadow: 0 12px 34px rgba(0,102,204,0.48);
    transform: translateY(-2px);
}
.learn-more-btn i { font-size: 13px; transition: transform 0.3s ease; }
.learn-more-btn:hover i { transform: translateX(4px); }

/* ── SVG Scan-line animation ──────────────── */
.scan-line {
    animation: scanMove 2.2s ease-in-out infinite;
}
@keyframes scanMove {
    0%   { transform: translateY(-18px); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(18px);  opacity: 0; }
}

/* Gear rotate */
.gear-spin {
    transform-origin: center;
    animation: gearRot 12s linear infinite;
}
.gear-spin-rev {
    transform-origin: center;
    animation: gearRot 8s linear infinite reverse;
}
@keyframes gearRot { to { transform: rotate(360deg); } }

/* Cosmetics sparkle */
.sparkle-pop {
    animation: sparklePop 2.8s ease-in-out infinite;
}
.sparkle-pop:nth-of-type(2) { animation-delay: 0.8s; }
.sparkle-pop:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes sparklePop {
    0%, 80%, 100% { transform: scale(1); opacity: 0.6; }
    40%            { transform: scale(1.35); opacity: 1; }
}

/* ── Logo / Capability Ticker ─────────────── */
.ticker-section {
    padding: 0;
    background: #0d1b2e;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ticker-label {
    text-align: center;
    padding: 36px 0 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.ticker-track-wrap {
    position: relative;
    padding-bottom: 36px;
    /* fade edges */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 10px 24px;
    margin: 0 14px;
    white-space: nowrap;
    transition: background 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}
.ticker-item:hover {
    background: rgba(0,102,204,0.2);
    border-color: rgba(0,102,204,0.5);
}
.ticker-item i {
    color: #4db8ff;
    font-size: 15px;
}
.ticker-item span {
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.3px;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
    }
    .categories-grid .category-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 440px;
        margin: 0 auto;
        width: 100%;
    }
    .main-title { font-size: 40px; }
    .section-intro h2 { font-size: 32px; }
}

@media (max-width: 768px) {
    .categories-grid { grid-template-columns: 1fr; gap: 22px; }
    .categories-grid .category-card:nth-child(3) {
        grid-column: auto; max-width: none;
    }
    .main-title { font-size: 30px; }
    .subtitle { font-size: 15px; }
    .inspection-categories { padding: 60px 0 75px; }
    .section-intro h2 { font-size: 26px; }
    .section-intro { margin-bottom: 48px; }
    .category-card { padding: 40px 26px 36px; }
    .icon-circle { width: 100px; height: 100px; }
    .icon-circle svg { width: 52px; height: 52px; }
    .icon-wrapper { width: 118px; height: 118px; margin-bottom: 26px; }
}

@media (max-width: 480px) {
    .main-title { font-size: 26px; }
    .card-title { font-size: 21px; }
    .category-card { padding: 34px 22px 30px; }
}
