/* ============================================================
   OpsTree Industries Carousel
   ------------------------------------------------------------
   Changes from original:
   • will-change removed from .ind-track and .ind-card-img (JS toggles)
   • Respects prefers-reduced-motion
   ============================================================ */

.ind-wrap * { box-sizing: border-box; margin: 0; padding: 0; }

.ind-wrap {
    position: relative;
    width: 100%;
    padding: 0 0 48px;
    font-family: 'Inter', system-ui, sans-serif;
    overflow: hidden;
}

.ind-viewport { overflow: hidden; padding: 0 40px; }

.ind-track {
    display: flex;
    gap: 18px;
    /* will-change toggled by JS only during animation */
}

/* Card */
.ind-card {
    position: relative;
    flex: 0 0 calc((100% - 36px) / 3);
    height: 400px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(80,130,255,0.18);
    box-shadow: 0 4px 24px rgba(0,20,100,0.25);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.ind-card:hover {
    border-color: rgba(100,160,255,0.42);
    box-shadow: 0 8px 48px rgba(0,30,140,0.55), 0 0 0 1px rgba(100,160,255,0.18);
}

.ind-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}

.ind-card:hover .ind-card-img { transform: scale(1.12); }

.ind-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(5,15,55,0.08) 0%,
        rgba(5,15,55,0.18) 45%,
        rgba(5,15,55,0.68) 72%,
        rgba(5,10,45,0.92) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Icon badge */
.ind-card-icon {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(30,70,200,0.38);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(100,160,255,0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    box-shadow: 0 2px 12px rgba(0,30,140,0.3);
}

.ind-card:hover .ind-card-icon {
    background: rgba(50,100,240,0.52);
    border-color: rgba(130,180,255,0.5);
    transform: scale(1.1);
}

.ind-card-icon svg { width: 18px; height: 18px; color: #fff; }

/* Glass panel */
.ind-card-glass {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 14px 18px 18px;
    background: linear-gradient(160deg,
        rgba(8,25,100,0.90) 0%,
        rgba(5,15,65,0.95) 100%);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    border-top: 1px solid rgba(100,160,255,0.25);
    border-radius: 0 0 18px 18px;
    box-shadow: inset 0 1px 0 rgba(120,170,255,0.14);
    transition: background 0.3s ease;
}

.ind-card:hover .ind-card-glass {
    background: linear-gradient(160deg,
        rgba(12,35,130,0.94) 0%,
        rgba(8,22,85,0.97) 100%);
}

.ind-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 1px 8px rgba(0,20,100,0.5);
}

.ind-glass-body { overflow: hidden; }

.ind-glass-desc {
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(190,215,255,0.78);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button inside glass */
.ind-card-glass .qodef-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    background: rgba(60,110,255,0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(100,160,255,0.38);
    border-radius: 6px;
    color: #fff !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, gap 0.2s, box-shadow 0.2s;
}

.ind-card-glass .qodef-button:hover {
    background: rgba(80,130,255,0.38);
    border-color: rgba(140,190,255,0.6);
    gap: 14px;
    box-shadow: 0 4px 16px rgba(60,100,255,0.3);
}

.ind-card-glass .qodef-button .qodef-m-text { color: #fff; }
.ind-card-glass .qodef-button .qodef-m-arrow { display: flex; align-items: center; transition: transform 0.2s; }
.ind-card-glass .qodef-button:hover .qodef-m-arrow { transform: translateX(3px); }
.ind-card-glass .qodef-button .qodef-svg--button-arrow path { stroke: #fff; fill: none; stroke-width: 1.2; }

/* Nav */
.ind-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 40px 20px;
}

.ind-dots { display: flex; align-items: center; gap: 6px; margin-right: auto; }

.ind-dot {
    height: 5px;
    width: 5px;
    border-radius: 99px;
    background: rgba(100,150,255,0.3);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s;
}
.ind-dot.active { width: 18px; background: rgba(130,180,255,0.95); }

.ind-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(100,150,255,0.28);
    background: rgba(20,50,160,0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ind-btn:hover {
    background: rgba(40,90,220,0.42);
    border-color: rgba(130,180,255,0.55);
    transform: scale(1.08);
    box-shadow: 0 4px 18px rgba(40,80,220,0.35);
}

.ind-btn:disabled { opacity: 0.25; pointer-events: none; }
.ind-btn svg { width: 16px; height: 16px; }

.ind-btn-next-wrap { position: relative; width: 40px; height: 40px; }

.ind-progress-ring {
    position: absolute;
    inset: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    transform: rotate(-90deg);
    pointer-events: none;
}

.ind-progress-ring circle {
    fill: none;
    stroke: rgba(120,180,255,0.7);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 0 999;
}

/* Responsive */
@media (max-width: 1024px) {
    .ind-card { flex: 0 0 calc((100% - 18px) / 2); }
}

@media (max-width: 640px) {
    .ind-viewport { padding: 0 20px; }
    .ind-nav { padding: 18px 20px 16px; }
    .ind-card { flex: 0 0 calc(100% - 40px); height: 360px; }
    .ind-card-title { font-size: 17px; }
    .ind-glass-desc { font-size: 12.5px; }
    .ind-card .ind-card-glass { transform: translateY(0); }
    .ind-card .ind-glass-body { max-height: 220px; opacity: 1; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .ind-card-img { transition: none !important; transform: scale(1) !important; }
}
