/**
 * FYP Portal - Landing Page: Content Sections Module
 * How It Works, Roles, Project Ideas, Features, Resources, and Contact
 */

/* ============================================================
   SHARED SECTION TYPOGRAPHY & LABELS
   ============================================================ */
body.landing-page .section-heading {
    font-family: var(--home-font-title, 'Space Grotesk', sans-serif);
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    background: linear-gradient(120deg, #0f2742 0%, #0369a1 52%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

body.landing-page .section-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--home-primary, #0284c7);
    border: 1px solid rgba(2, 132, 199, 0.22);
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(56, 189, 248, 0.14));
    margin-bottom: 10px;
}

body.landing-page .section-desc {
    color: var(--home-muted, #475569);
    max-width: 580px;
    font-size: 0.90rem;
    line-height: 1.55;
    margin: 0 auto 24px;
}

/* ============================================================
   SECTION: HOW IT WORKS
   ============================================================ */
body.landing-page .section-how {
    background: linear-gradient(180deg, #f1f7ff 0%, #f8fbff 42%, #ebf4ff 100%);
    padding: 48px 0;
}

body.landing-page .workflow-peek-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
body.landing-page .workflow-peek-card {
    border-radius: 14px; border: 1px solid rgba(37, 99, 235, 0.14);
    background: linear-gradient(155deg, #ffffff 0%, #f2fbff 100%);
    box-shadow: 0 12px 28px rgba(16, 34, 51, 0.08);
    padding: 14px 16px 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.landing-page .workflow-peek-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(16, 34, 51, 0.12); }
body.landing-page .workflow-peek-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 8px; color: #fff; font-size: 0.92rem;
    background: linear-gradient(130deg, var(--home-primary, #2563eb), var(--home-primary-2, #1e40af));
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}
body.landing-page .workflow-peek-card h5 { margin: 0 0 4px; font-size: 0.92rem; color: #10364f; font-weight: 700; }
body.landing-page .workflow-peek-card p { margin: 0; font-size: 0.82rem; color: #5e6e7d; line-height: 1.48; }
body.landing-page .process-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.landing-page .process-timeline::before { display: none; }

body.landing-page .process-step {
    border-radius: 16px;
    border: 1px solid rgba(16, 34, 51, 0.08);
    background: linear-gradient(160deg, #ffffff 0%, #f3f9fd 100%);
    box-shadow: 0 12px 30px rgba(16, 34, 51, 0.06);
    padding: 18px 16px 16px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.landing-page .process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(16, 34, 51, 0.11);
}

body.landing-page .step-circle {
    width: 62px;
    height: 62px;
    margin: 0 auto 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.landing-page .step-circle-bg {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: linear-gradient(160deg, #f8feff 0%, #eaf3ff 100%);
    box-shadow: 0 8px 18px rgba(16, 34, 51, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

body.landing-page .step-circle:hover .step-circle-bg {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 12px 22px rgba(16, 34, 51, 0.12);
}

body.landing-page .step-num {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(130deg, #0284c7, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.landing-page .step-ico {
    font-size: 0.75rem;
    color: #0284c7;
    line-height: 1;
}

body.landing-page .step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.landing-page .step-phase {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #1e40af;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.landing-page .process-step h4 {
    color: #10364f;
    font-size: 1.03rem;
    margin-bottom: 8px;
    font-weight: 700;
}

body.landing-page .process-step p {
    color: #5a6774;
    font-size: 0.87rem;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   SECTION: ROLES
   ============================================================ */
body.landing-page .section-roles {
    background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 45%, #eef6ff 100%);
    padding: 48px 0;
}

body.landing-page .role-card-v3 {
    border-radius: 24px;
    border: 1px solid rgba(16, 34, 51, 0.1);
    background: linear-gradient(165deg, #ffffff 0%, #f5fbff 100%);
    box-shadow: 0 18px 44px rgba(16, 34, 51, 0.08);
    padding: 28px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body.landing-page .role-card-v3:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 54px rgba(16, 34, 51, 0.14);
}

body.landing-page .role-features li {
    border-bottom: 1px solid rgba(16, 34, 51, 0.08);
    color: #4f6172;
    padding: 8px 0;
    font-size: 0.88rem;
}

/* ============================================================
   SECTION: FEATURES
   ============================================================ */
body.landing-page .section-features {
    background: radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.09) 0%, transparent 40%),
                linear-gradient(180deg, #f4f9ff 0%, #ffffff 40%, #edf6ff 100%);
    padding: 48px 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
}

body.landing-page .feature-grid-v3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}

body.landing-page .feature-card-v3 {
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: linear-gradient(165deg, #ffffff 0%, #f6fbff 100%);
    box-shadow: 0 10px 28px -8px rgba(16, 34, 51, 0.06), 0 0 1px 1px rgba(255, 255, 255, 0.9) inset;
    border-radius: 18px;
    padding: 24px 20px;
    transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.landing-page .feature-card-v3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--feat-shadow, linear-gradient(90deg, #38bdf8, #2563eb));
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.landing-page .feature-card-v3:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 42px -12px var(--feat-shadow, rgba(37, 99, 235, 0.2)), 0 0 0 1px rgba(37, 99, 235, 0.15);
}

body.landing-page .feature-card-v3:hover::before {
    opacity: 1;
}

body.landing-page .feature-icon-v3 {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px var(--feat-shadow, rgba(37, 99, 235, 0.25));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

body.landing-page .feature-card-v3:hover .feature-icon-v3 {
    transform: scale(1.08) rotate(3deg);
}

body.landing-page .feature-card-v3 h4 {
    font-family: var(--home-font-title, 'Inter', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f2742;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

body.landing-page .feature-card-v3 p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: #4b5e71;
    margin: 0;
}

/* ============================================================
   SECTION: RESOURCES
   ============================================================ */
body.landing-page .section-resources-home {
    background: radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
                linear-gradient(180deg, #f2f9ff 0%, #f7fcff 50%, #eaf4ff 100%);
    padding: 48px 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 1px 650px;
}

body.landing-page .resource-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 8px;
}

body.landing-page .resource-home-card {
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: linear-gradient(165deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 10px 28px -10px rgba(16, 34, 51, 0.06), 0 0 1px 1px rgba(255, 255, 255, 0.9) inset;
    border-radius: 18px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: hidden;
}

body.landing-page .resource-home-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 20px 42px -12px rgba(37, 99, 235, 0.2), 0 0 0 1px rgba(37, 99, 235, 0.15);
}

body.landing-page .resource-home-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

body.landing-page .resource-home-card:hover .resource-home-icon {
    transform: scale(1.08) rotate(3deg);
}

body.landing-page .resource-home-card h4 {
    font-family: var(--home-font-title, 'Inter', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f2742;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

body.landing-page .resource-home-card p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #4e6074;
    margin: 0 0 14px;
}

body.landing-page .resource-home-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.landing-page .resource-home-list li {
    position: relative;
    padding-left: 22px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #334e68;
    font-weight: 500;
}

body.landing-page .resource-home-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.64rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.landing-page .resource-home-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: rgba(37, 99, 235, 0.07);
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

body.landing-page .resource-home-link i {
    transition: transform 0.25s ease;
}

body.landing-page .resource-home-link:hover {
    color: #ffffff;
    background: linear-gradient(130deg, #38bdf8 0%, #2563eb 56%, #1e3a8a 100%);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

body.landing-page .resource-home-link:hover i {
    transform: translateX(4px);
}

/* ============================================================
   SECTION: CONTACT & HELP (WHITE + SKY BLUE PALETTE)
   ============================================================ */
body.landing-page .section-contact {
    background:
        radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 82% 80%, rgba(2, 132, 199, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f0f9ff 100%);
    padding: 48px 0;
    color: #0f2742;
    position: relative;
}

body.landing-page .contact-glass {
    border-radius: 20px;
    border: 1.5px solid #e0f2fe;
    background: #ffffff;
    box-shadow: 
        0 16px 40px -10px rgba(2, 132, 199, 0.08),
        0 4px 16px rgba(15, 23, 42, 0.03);
    padding: 24px 22px;
}

body.landing-page .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

body.landing-page .contact-item:hover {
    transform: translateY(-2px);
    background: #f0f9ff;
    border-color: #38bdf8;
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.1);
}

body.landing-page .contact-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.2);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.landing-page .contact-item:hover .contact-ico {
    transform: scale(1.08) rotate(3deg);
}

body.landing-page .contact-text {
    flex: 1;
    min-width: 0;
}

body.landing-page .contact-text h5 {
    font-family: var(--home-font-title, 'Space Grotesk', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f2742;
    margin: 0 0 3px;
    letter-spacing: -0.01em;
}

body.landing-page .contact-text p {
    font-size: 0.82rem;
    line-height: 1.48;
    color: #475569;
    margin: 0;
}

body.landing-page .contact-text p small {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: #0284c7;
    font-weight: 600;
}

body.landing-page .contact-link {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

body.landing-page .contact-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* ============================================================
   SCROLL REVEAL & STAGGER MICRO-ANIMATIONS
   ============================================================ */
body.landing-page .reveal,
body.landing-page .reveal-scale,
body.landing-page .reveal-left,
body.landing-page .reveal-right {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

body.landing-page .reveal-scale { transform: scale(0.95) translateY(14px); }
body.landing-page .reveal-left { transform: translateX(-24px); }
body.landing-page .reveal-right { transform: translateX(24px); }
body.landing-page .reveal.visible, body.landing-page .reveal-scale.visible,
body.landing-page .reveal-left.visible, body.landing-page .reveal-right.visible { opacity: 1; transform: none; }

/* Stagger Children within Grids */
body.landing-page .stagger-children > * {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
body.landing-page .stagger-children.visible > * { opacity: 1; transform: translateY(0); }
body.landing-page .stagger-children.visible > *:nth-child(1) { transition-delay: 0.04s; }
body.landing-page .stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
body.landing-page .stagger-children.visible > *:nth-child(3) { transition-delay: 0.12s; }
body.landing-page .stagger-children.visible > *:nth-child(4) { transition-delay: 0.16s; }
body.landing-page .stagger-children.visible > *:nth-child(5) { transition-delay: 0.20s; }
body.landing-page .stagger-children.visible > *:nth-child(6) { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE SECTIONS (< 1199.98px, < 991.98px, < 767.98px, < 640px)
   ============================================================ */
@media (max-width: 1199.98px) {
    body.landing-page .resource-home-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 991.98px) {
    body.landing-page .section-how,
    body.landing-page .section-roles,
    body.landing-page .section-ideas,
    body.landing-page .section-features,
    body.landing-page .section-resources-home,
    body.landing-page .section-contact { padding: 65px 0; }

    body.landing-page .workflow-peek-grid { grid-template-columns: 1fr; gap: 12px; }
    body.landing-page .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    body.landing-page .feature-grid-v3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    body.landing-page .resource-home-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 767.98px) {
    body.landing-page .section-how { padding: 48px 0; }
    body.landing-page .contact-glass { padding: 22px 18px; }

    /* Workflow Peek Cards: Compact Horizontal Rows */
    body.landing-page .workflow-peek-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 22px; }
    body.landing-page .workflow-peek-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; text-align: left; }
    body.landing-page .workflow-peek-icon { width: 38px; height: 38px; min-width: 38px; margin-bottom: 0; font-size: 0.95rem; flex-shrink: 0; }
    body.landing-page .workflow-peek-content { flex: 1; min-width: 0; }
    body.landing-page .workflow-peek-card h5 { font-size: 0.92rem; margin-bottom: 2px; }
    body.landing-page .workflow-peek-card p { font-size: 0.8rem; line-height: 1.4; }

    /* How It Works Steps: Sleek Horizontal Timeline Rows on Mobile */
    body.landing-page .process-timeline { display: flex; flex-direction: column; gap: 12px; }
    body.landing-page .process-step { display: flex; flex-direction: row; align-items: flex-start; text-align: left; gap: 14px; padding: 14px 14px; border-radius: 16px; }
    body.landing-page .step-circle { width: 48px; height: 48px; min-width: 48px; margin: 0; flex-shrink: 0; }
    body.landing-page .step-circle-bg { border-radius: 14px; gap: 1px; }
    body.landing-page .step-num { font-size: 1.12rem; }
    body.landing-page .step-ico { font-size: 0.7rem; }
    body.landing-page .step-content { align-items: flex-start; text-align: left; flex: 1; min-width: 0; }
    body.landing-page .step-phase { margin-bottom: 4px; padding: 2px 7px; font-size: 0.62rem; }
    body.landing-page .process-step h4 { font-size: 0.95rem; margin-bottom: 4px; line-height: 1.35; }
    body.landing-page .process-step p { font-size: 0.82rem; line-height: 1.45; margin: 0; }
}

@media (max-width: 640px) {
    body.landing-page .feature-grid-v3,
    body.landing-page .resource-home-grid { grid-template-columns: 1fr; gap: 16px; }
}
