/* ============================================================
   MSME Technology Centre — Homepage Enhancement Layer
   Additive polish on top of welcome-redesign.css & homepage-hero.css
   Scoped to the public homepage only.
   ============================================================ */

:root {
    --grad-blue: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    --grad-blue-red: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 55%, #DC2626 140%);
    --grad-accent: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Smooth in-page scrolling + guard against any horizontal overflow.
   `clip` is used (not `hidden`) so it never breaks a sticky header. */
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ============================================================
   Fluid / responsive typography
   clamp(MIN, PREFERRED(viewport-based), MAX) — scales smoothly
   between phones and large desktops without hard breakpoints.
   ============================================================ */

/* Hero */
.hero h1 { font-size: clamp(1.9rem, 4.2vw + 0.9rem, 4rem) !important; }
.hero h2 { font-size: clamp(1.05rem, 1.4vw + 0.5rem, 1.6rem) !important; }
.hero p  { font-size: clamp(0.95rem, 0.7vw + 0.55rem, 1.15rem) !important; }
.hero-badge { font-size: clamp(0.72rem, 0.4vw + 0.62rem, 0.9rem) !important; }
.hero-cta,
.hero-cta-ghost { font-size: clamp(0.95rem, 0.5vw + 0.75rem, 1.1rem) !important; }

/* Section headings */
.section-title { font-size: clamp(1.5rem, 1.8vw + 0.85rem, 2.25rem) !important; }
.section-subtitle { font-size: clamp(0.92rem, 0.5vw + 0.7rem, 1.1rem); }
.section-eyebrow { font-size: clamp(0.68rem, 0.25vw + 0.6rem, 0.8rem); }

/* Statistics */
.stat-number { font-size: clamp(2rem, 2.6vw + 1.1rem, 3.5rem) !important; }
.stat-label  { font-size: clamp(0.92rem, 0.4vw + 0.75rem, 1.15rem); }

/* NCVET */
.ncvet-title { font-size: clamp(1.5rem, 1.8vw + 0.85rem, 2.25rem); }
.ncvet-description { font-size: clamp(0.92rem, 0.5vw + 0.7rem, 1.1rem); }
.ncvet-card-title { font-size: clamp(1.05rem, 0.8vw + 0.7rem, 1.4rem); }
.ncvet-card-description,
.ncvet-card-list li { font-size: clamp(0.88rem, 0.4vw + 0.72rem, 1rem); }

/* Cards */
.qualification-title { font-size: clamp(1rem, 0.6vw + 0.78rem, 1.2rem); }
.sector-name { font-size: clamp(0.8rem, 0.35vw + 0.68rem, 0.95rem); }

/* Process steps */
.process-title { font-size: clamp(1rem, 0.7vw + 0.72rem, 1.25rem); }
.process-description { font-size: clamp(0.85rem, 0.4vw + 0.68rem, 1rem); }

/* Partners (overrides inline size) */
.partners-section h2 { font-size: clamp(1.6rem, 2.4vw + 0.9rem, 2.5rem) !important; }
.partners-section .lead { font-size: clamp(0.95rem, 0.6vw + 0.7rem, 1.2rem) !important; }

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s var(--ease-out-soft), transform 0.7s var(--ease-out-soft);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .scroll-cue, .hero-dots { animation: none !important; }
}

/* ---------- Section eyebrow + gradient title accent ---------- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-blue, #1E40AF);
    background: rgba(30, 64, 175, 0.08);
    border: 1px solid rgba(30, 64, 175, 0.16);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.9rem;
}
.section-eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-accent);
}
.section-eyebrow.on-dark {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Animated gradient underline under centered section titles */
.process-section .section-title,
.statistics-section .section-title {
    position: relative;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 0.65rem;
}
.process-section .section-title::after,
.statistics-section .section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: var(--grad-accent);
}

/* ---------- Hero polish ---------- */
/* Cinematic gradient overlay instead of flat black */
.hero-slide::before {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(15, 23, 42, 0.78) 100%) !important;
}
.hero h1 { letter-spacing: -0.02em; }

/* Secondary outline CTA next to the solid one */
.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}
.hero-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.hero-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
    color: #fff;
}

/* Slide indicator dots */
.hero-dots {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 20;
}
.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.3s ease;
    padding: 0;
}
.hero-dot.active {
    width: 30px;
    border-radius: 50px;
    background: #fff;
}

/* Scroll-down cue */
.scroll-cue {
    position: absolute;
    bottom: 1.4rem;
    right: 2.2rem;
    z-index: 20;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    animation: cueBounce 2s ease-in-out infinite;
}
.scroll-cue i { font-size: 1rem; }
.scroll-cue:hover { color: #fff; }
@keyframes cueBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
@media (max-width: 768px) {
    .scroll-cue { display: none; }
    .hero-dots { bottom: 1.2rem; }
}

/* ---------- Card sheen (qualification + sector + ncvet) ---------- */
.qualification-card,
.sector-card,
.ncvet-card {
    position: relative;
    overflow: hidden;
}

/* Sector cards are now links — keep them looking like cards, not text links */
a.sector-card,
a.sector-card:hover,
a.sector-card:focus {
    text-decoration: none;
    color: inherit;
}
.qualification-card::after,
.ncvet-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-18deg);
    transition: left 0.7s var(--ease-out-soft);
    pointer-events: none;
    z-index: 3;
}
.qualification-card:hover::after,
.ncvet-card:hover::after {
    left: 130%;
}

/* Accent top border reveal on NCVET cards */
.ncvet-card {
    border-top: 3px solid transparent;
    transition: all 0.3s ease, border-color 0.3s ease;
}
.ncvet-card:hover {
    border-top-color: var(--accent-red, #DC2626);
}

/* ---------- Process steps polish ---------- */
.process-icon {
    transition: transform 0.35s var(--ease-out-soft), box-shadow 0.35s ease;
}
.process-step:hover .process-icon {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.28);
}
/* Gradient connector line between steps */
.process-step:not(:last-child)::after {
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.35), rgba(220, 38, 38, 0.35)) !important;
    height: 3px !important;
}

/* ---------- Statistics as glass cards + counters ---------- */
.statistics-section { position: relative; overflow: hidden; }
.statistics-section::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
    top: -180px;
    right: -120px;
    pointer-events: none;
}
.stat-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl, 1rem);
    padding: 2rem 1rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.35s var(--ease-out-soft), background 0.35s ease;
}
.stat-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.14);
}

/* ---------- Scroll-to-top button ---------- */
#scrollTopBtn {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--grad-blue);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.35s var(--ease-out-soft);
    z-index: 1000;
}
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}
#scrollTopBtn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.5);
}

/* ---------- Partners heading accent ---------- */
.partners-section h2 {
    background: var(--grad-blue-red);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
