/* ---------- INDUSTRY DETAILS TEMPLATE ---------- */

/* Hero */
.ind-hero { position: relative; height: 70vh; min-height: 500px; display: flex; align-items: center; overflow: hidden; }
.ind-hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); object-fit: cover; z-index: 1; }
.ind-hero-overlay { position: absolute; inset: 0; background: rgba(14,27,42,0.85); z-index: 2; }
.ind-hero-content { position: relative; z-index: 3; max-width: 800px; padding-top: 60px; }
.ind-hero-title { font-size: clamp(32px, 4vw, 48px); color: #fff; line-height: 1.3; margin-bottom: 20px; }
.ind-hero-title strong { color: #FFB800; font-weight: inherit; }

/* Layout Grid */
.ind-layout-section { padding: 80px 0; background: #fff; }
.ind-layout-grid { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: start; }

/* Sidebar Widget */
.ind-widget { background: #f9f9f9; padding: 30px; border-radius: 8px; margin-bottom: 30px; }
.ind-widget-title { font-size: 20px; color: var(--ink); margin-bottom: 20px; }

/* Sidebar Menu */
.ind-menu-list { list-style: none; padding: 0; margin: 0; }
.ind-menu-list li { margin-bottom: 10px; }
.ind-menu-list a { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #fff; border: 1px solid #eee; color: #555; text-decoration: none; border-radius: 4px; font-weight: 500; transition: 0.3s; }
.ind-menu-list a:hover { border-color: #E81A5F; color: #E81A5F; }
.ind-menu-list a.active { background: #E81A5F; border-color: #E81A5F; color: #fff; }

/* Sidebar Help Box */
.ind-help-box { background-size: cover; background-position: center; border-radius: 8px; padding: 40px 30px; text-align: center; color: #fff; }
.ind-help-box h4 { font-size: 24px; margin-bottom: 20px; line-height: 1.3; }
.ind-help-icon { font-size: 40px; margin-bottom: 20px; color: #fff; }
.ind-help-email { font-size: 14px; margin-bottom: 10px; opacity: 0.8; }
.ind-help-phone { font-size: 22px; font-weight: 700; margin: 0; }

/* Main Content Typography */
.ind-main-img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 40px; }
.ind-section-title { font-size: 32px; color: var(--ink); margin-bottom: 20px; }
.ind-sub-title { font-size: 24px; color: var(--ink); margin: 40px 0 20px; }
.ind-prose { color: #666; line-height: 1.8; margin-bottom: 20px; font-size: 15px; }

/* Overview Grid */
.ind-overview-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; margin: 40px 0; }
.ind-overview-img { border-radius: 8px; background-size: cover; background-position: center; min-height: 250px; }
.ind-checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.ind-checklist li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--ink); font-weight: 500; }
.ind-checklist li i { color: #E81A5F; font-size: 18px; }

/* Solutions Grid */
.ind-solutions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 30px 0 40px; }
.ind-solution-card { background: #f4f5f7; padding: 40px 30px 30px; border-radius: 8px; text-align: center; position: relative; margin-top: 30px; }
.ind-solution-icon { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; background: #E81A5F; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.ind-solution-card h4 { font-size: 18px; color: var(--ink); margin-bottom: 12px; }
.ind-solution-card p { font-size: 14px; color: #777; line-height: 1.6; margin: 0; }

/* Downloads */
.ind-downloads-list { display: flex; flex-direction: column; gap: 15px; }
.ind-download-card { display: flex; justify-content: space-between; align-items: center; padding: 20px; border: 1px solid #eee; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.ind-dl-info { display: flex; align-items: center; gap: 15px; }
.ind-dl-info i { font-size: 30px; color: #E81A5F; opacity: 0.8; }
.ind-dl-info strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.ind-dl-info span { color: #999; font-size: 12px; }
.ind-dl-btn { background: rgba(232,26,95,0.1); color: #E81A5F; font-weight: 700; font-size: 12px; padding: 8px 16px; border-radius: 4px; text-decoration: none; transition: 0.2s; }
.ind-dl-btn:hover { background: #E81A5F; color: #fff; }

/* Styling for the new WYSIWYG solution descriptions */
.ind-solution-desc { font-size: 14px; color: #777; line-height: 1.6; }
.ind-solution-desc p { margin-bottom: 12px; }
.ind-solution-desc p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 960px) {
    .ind-layout-grid { grid-template-columns: 1fr; }
    .ind-overview-grid { grid-template-columns: 1fr; }
    .ind-overview-img { display: none; }
}
@media (max-width: 600px) {
    .ind-solutions-grid { grid-template-columns: 1fr; }
    .ind-download-card { flex-direction: column; align-items: flex-start; gap: 15px; }
}

/* ---------- HERO SEQUENCE ANIMATIONS ---------- */

/* 1. Typewriter Cursor */
.anim-eyebrow::after {
    content: '|';
    animation: cursorBlink 0.8s step-start infinite;
    margin-left: 2px;
}
@keyframes cursorBlink {
    50% { opacity: 0; }
}
.anim-eyebrow.typing-done::after {
    display: none; /* Optional: hides cursor after typing finishes */
}

/* 2. Title Zoom & Bounce */
.anim-title.do-bounce {
    animation: heroZoomBounce 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes heroZoomBounce {
    0% { opacity: 0; transform: scale(0.5) translateY(40px); }
    50% { opacity: 1; transform: scale(1.05) translateY(-10px); }
    75% { transform: scale(0.97) translateY(5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* 3. Description Word Fading */
.desc-word {
    opacity: 0;
    display: inline-block;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.desc-word.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- REPEATABLE SCROLL ANIMATIONS ---------- */

/* Initial Hidden State */
.scroll-anim-btn,
.scroll-anim-card,
.scroll-anim-text {
    opacity: 0;
    visibility: hidden;
}

/* 1. Buttons: Fade and slide from left */
.scroll-anim-btn.is-visible {
    visibility: visible;
    animation: slideInLeft 0.6s ease-out forwards;
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* 2. Cards: Fade, zoom large, bounce back */
.scroll-anim-card.is-visible {
    visibility: visible;
    animation: cardZoomBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes cardZoomBounce {
    0% { opacity: 0; transform: scale(0.85); }
    60% { opacity: 1; transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}

/* 3. Text: Slow fade in with slight lift */
.scroll-anim-text.is-visible {
    visibility: visible;
    animation: slowFadeIn 1s ease-out forwards;
}

@keyframes slowFadeIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}