/* ===================================================
   INDUSTRIES PAGE — Premium Industrial B2B Design
   =================================================== */

/* ---- Hero ---- */
.ind-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ind-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ind-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.ind-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(15,94,64,0.45) 60%, rgba(0,0,0,0.55) 100%);
}

.ind-hero-marks {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ind-hero-mark {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(255,255,255,0.18);
    border-style: solid;
    border-width: 0;
}

.ind-hero-mark:nth-child(1) { border-top-width: 1.5px; border-left-width: 1.5px; }
.ind-hero-mark:nth-child(2) { border-top-width: 1.5px; border-right-width: 1.5px; }
.ind-hero-mark:nth-child(3) { border-bottom-width: 1.5px; border-left-width: 1.5px; }
.ind-hero-mark:nth-child(4) { border-bottom-width: 1.5px; border-right-width: 1.5px; }

.ind-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 120px 0 80px;
}

.ind-hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 7px 22px;
    margin-bottom: 28px;
}

.ind-hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
}

.ind-hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 540px;
}

.ind-hero-btn {
    font-size: 0.92rem;
    padding: 14px 32px;
}

/* ---- Scroll Progress ---- */
.ind-progress {
    position: fixed;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--primary);
    z-index: 1000;
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ind-progress.active {
    opacity: 1;
}

/* ---- Section Connector ---- */
.ind-connector {
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin: 0 auto 0;
    transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
}

.ind-detail.in-view .ind-connector {
    height: 48px;
    opacity: 1;
}

/* ---- Industry Detail Sections ---- */
.ind-detail {
    padding: 100px 0 80px;
    position: relative;
}

.ind-detail:nth-child(even) {
    background: var(--bg-alt);
}

.ind-detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.ind-detail--reverse .ind-detail-inner {
    direction: rtl;
}

.ind-detail--reverse .ind-detail-text,
.ind-detail--reverse .ind-detail-img-wrap {
    direction: ltr;
}

/* ---- Text Content ---- */
.ind-detail-index {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(15,94,64,0.08);
    border: 1px solid rgba(15,94,64,0.18);
    border-radius: 20px;
    padding: 5px 16px;
    margin-bottom: 18px;
}

.ind-detail-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.12;
    color: var(--text);
    margin-bottom: 14px;
}

.ind-detail-accent-line {
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    margin-bottom: 14px;
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.ind-detail.in-view .ind-detail-accent-line {
    width: 42px;
}

.ind-detail-divider {
    width: 0;
    height: 2px;
    background: rgba(15,94,64,0.15);
    margin-bottom: 16px;
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

.ind-detail.in-view .ind-detail-divider {
    width: 56px;
}

.ind-detail-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.ind-detail-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 28px;
}

/* ---- Key Applications ---- */
.ind-detail-apps {
    margin-top: 4px;
}

.ind-detail-apps-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.ind-detail-apps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ind-detail-apps-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 7px 0;
    line-height: 1.5;
}

.ind-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(15,94,64,0.09);
    border: 1.5px solid var(--primary);
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.ind-check::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 5px;
    width: 5px;
    height: 8px;
    border: solid var(--primary);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.3s ease 0.15s;
}

.ind-detail.in-view .ind-check::after {
    transform: rotate(45deg) scale(1);
}

.ind-detail-apps-list li:hover .ind-check {
    background: var(--primary);
    border-color: var(--primary);
}

.ind-detail-apps-list li:hover .ind-check::after {
    border-color: #fff;
}

/* ---- Image Frame ---- */
.ind-detail-img-wrap {
    position: relative;
}

.ind-img-frame {
    position: relative;
    border-radius: 16px;
    overflow: visible;
}

.ind-img-mask {
    border-radius: 16px;
    overflow: hidden;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.ind-detail.in-view .ind-img-mask {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.ind-img-inner {
    width: 100%;
    aspect-ratio: 4/3;
}

.ind-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(6px) brightness(0.92);
    transform: scale(1.12);
    transition: filter 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.ind-detail.in-view .ind-img-inner img {
    filter: blur(0) brightness(1);
    transform: scale(1);
}

/* SVG Border */
.ind-img-border {
    position: absolute;
    inset: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease 0.5s;
}

.ind-detail.in-view .ind-img-border {
    opacity: 1;
}

.ind-img-border rect {
    stroke-dashoffset: 2400;
    transition: stroke-dashoffset 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
}

.ind-detail.in-view .ind-img-border rect {
    stroke-dashoffset: 0;
}

/* Corner Marks */
.ind-img-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    opacity: 0;
    transition: opacity 0.4s ease 0.8s;
}

.ind-detail.in-view .ind-img-corner {
    opacity: 0.45;
}

.ind-img-frame:hover .ind-img-corner {
    opacity: 0.7;
}

/* ---- Image Parallax ---- */
.ind-img-inner img {
    will-change: transform;
}

/* ---- CTA Section ---- */
.ind-cta {
    position: relative;
    padding: 110px 0;
    text-align: center;
    overflow: hidden;
}

.ind-cta-bg {
    position: absolute;
    inset: 0;
}

.ind-cta-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
}

.ind-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #0b6a4a 100%);
}

.ind-cta-inner {
    position: relative;
    z-index: 2;
}

.ind-cta-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 24px;
    padding: 7px 22px;
    margin-bottom: 28px;
}

.ind-cta-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 18px;
}

.ind-cta-desc {
    font-size: 1.02rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto 36px;
}

.ind-cta-btn {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.ind-cta-btn:hover {
    background: rgba(255,255,255,0.88);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* ---- Stagger System ---- */
.cp-stagger {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cp-stagger[data-delay="0"] { transition-delay: 0s; }
.cp-stagger[data-delay="1"] { transition-delay: 0.08s; }
.cp-stagger[data-delay="2"] { transition-delay: 0.16s; }
.cp-stagger[data-delay="3"] { transition-delay: 0.24s; }
.cp-stagger[data-delay="4"] { transition-delay: 0.32s; }
.cp-stagger[data-delay="5"] { transition-delay: 0.4s; }
.cp-stagger[data-delay="6"] { transition-delay: 0.48s; }
.cp-stagger[data-delay="7"] { transition-delay: 0.56s; }
.cp-stagger[data-delay="8"] { transition-delay: 0.64s; }
.cp-stagger[data-delay="9"] { transition-delay: 0.72s; }

.in-view .cp-stagger,
.hero-in-view .cp-stagger,
.cta-in-view .cp-stagger {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    .cp-stagger { opacity: 1; transform: none; transition: none; }
    .ind-detail-accent-line,
    .ind-detail-divider,
    .ind-connector { transition: none; }
    .ind-detail.in-view .ind-detail-accent-line { width: 42px; }
    .ind-detail.in-view .ind-detail-divider { width: 56px; }
    .ind-detail.in-view .ind-connector { height: 48px; opacity: 1; }
    .ind-img-mask { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transition: none; }
    .ind-img-inner img { filter: blur(0); transform: none; transition: none; }
    .ind-img-border { opacity: 1; }
    .ind-img-border rect { stroke-dashoffset: 0; transition: none; }
    .ind-img-corner { opacity: 0.45; transition: none; }
    .ind-check::after { transform: rotate(45deg) scale(1); transition: none; }
}

/* ---- Responsive: 1024px ---- */
@media (max-width: 1024px) {
    .ind-hero-title { font-size: 2.6rem; }
    .ind-hero-content { padding: 100px 0 60px; }
    .ind-detail { padding: 80px 0 60px; }
    .ind-detail-inner { gap: 48px; }
    .ind-detail-title { font-size: 2rem; }
    .ind-cta-title { font-size: 2.1rem; }
}

/* ---- Responsive: 768px ---- */
@media (max-width: 768px) {
    .ind-hero { min-height: 420px; }
    .ind-hero-title { font-size: 2.2rem; }
    .ind-hero-desc { font-size: 0.95rem; }
    .ind-hero-content { padding: 90px 0 50px; }
    .ind-detail { padding: 64px 0 48px; }
    .ind-detail-inner { grid-template-columns: 1fr; gap: 36px; }
    .ind-detail--reverse .ind-detail-inner { direction: ltr; }
    .ind-detail-title { font-size: 1.8rem; }
    .ind-detail-desc { font-size: 0.88rem; }
    .ind-cta { padding: 80px 0; }
    .ind-cta-title { font-size: 1.8rem; }
    .ind-cta-desc { font-size: 0.92rem; }
    .ind-hero-mark { width: 20px; height: 20px; }
}

/* ---- Responsive: 480px ---- */
@media (max-width: 480px) {
    .ind-hero { min-height: 360px; }
    .ind-hero-title { font-size: 1.8rem; }
    .ind-hero-desc { font-size: 0.88rem; }
    .ind-hero-content { padding: 80px 0 40px; }
    .ind-hero-badge { font-size: 0.65rem; padding: 5px 16px; }
    .ind-detail { padding: 48px 0 36px; }
    .ind-detail-inner { gap: 24px; }
    .ind-detail-title { font-size: 1.5rem; }
    .ind-detail-desc { font-size: 0.84rem; line-height: 1.65; }
    .ind-detail-apps-list li { font-size: 0.82rem; gap: 10px; }
    .ind-cta { padding: 64px 0; }
    .ind-cta-title { font-size: 1.5rem; }
    .ind-cta-desc { font-size: 0.86rem; }
    .ind-cta-btn { font-size: 0.85rem; padding: 12px 28px; }
    .ind-hero-mark { display: none; }
}
