/* =========================================================
   SOCIAL ENGINEERING PAGE
   Cybersecurity Life — Neon Grid / Moving Interface Design
   ========================================================= */

:root {
    --social-bg: #030913;
    --social-bg-soft: #071321;
    --social-panel: rgba(7, 24, 39, 0.86);
    --social-panel-strong: rgba(5, 18, 31, 0.96);
    --social-cyan: #41e7ff;
    --social-blue: #4285ff;
    --social-green: #58ffb1;
    --social-lime: #a8ff60;
    --social-yellow: #ffd75e;
    --social-red: #ff6078;
    --social-purple: #b98cff;
    --social-white: #f4fbff;
    --social-muted: #9bb1c2;
    --social-border: rgba(65, 231, 255, 0.22);
    --social-border-bright: rgba(65, 231, 255, 0.58);
    --social-shadow: 0 0 20px rgba(65, 231, 255, 0.14);
    --social-radius: 22px;
    --social-radius-small: 14px;
}

html {
    scroll-behavior: smooth;
}

.social-engineering-page,
.social-engineering-page * {
    box-sizing: border-box;
}

.social-engineering-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--social-white);
    background:
        radial-gradient(circle at 12% 8%, rgba(65, 231, 255, 0.12), transparent 28rem),
        radial-gradient(circle at 88% 22%, rgba(185, 140, 255, 0.10), transparent 30rem),
        radial-gradient(circle at 50% 72%, rgba(88, 255, 177, 0.07), transparent 36rem),
        linear-gradient(180deg, #020812 0%, #07111d 42%, #030913 100%);
}

.social-engineering-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(65, 231, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(65, 231, 255, 0.055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.78), transparent 96%);
    animation: socialGridMove 18s linear infinite;
}

.social-engineering-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.65;
    background:
        linear-gradient(115deg, transparent 0 47%, rgba(65, 231, 255, 0.04) 49%, transparent 51% 100%),
        repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, 0.012) 5px 6px);
    animation: socialSignalDrift 12s ease-in-out infinite alternate;
}

.social-engineering-page a {
    color: inherit;
}

.social-engineering-page img,
.social-engineering-page svg {
    max-width: 100%;
}

.section-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.social-engineering-page section {
    position: relative;
    padding-block: 92px;
}

.social-engineering-page section[id] {
    scroll-margin-top: 110px;
}

.section-heading {
    max-width: 790px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 13px;
    color: var(--social-green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-label i {
    color: var(--social-cyan);
    filter: drop-shadow(0 0 8px rgba(65, 231, 255, 0.65));
}

.section-heading h2,
.psychology-content h2,
.response-heading h2,
.knowledge-check-content h2,
.continue-learning-content h2 {
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.section-heading > p:last-child,
.psychology-content > p,
.response-heading > p,
.knowledge-check-content > p,
.continue-learning-content > p {
    color: var(--social-muted);
    font-size: 1.04rem;
    line-height: 1.82;
}

.section-heading > p:last-child {
    max-width: 690px;
    margin: 18px auto 0;
}

/* ======================== HERO ======================== */

.social-hero {
    min-height: 820px;
    display: grid;
    align-items: center;
    padding-top: 118px !important;
    overflow: hidden;
    border-bottom: 1px solid rgba(65, 231, 255, 0.15);
}

.social-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(65, 231, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(65, 231, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(700px) rotateX(63deg) scale(1.75) translateY(26%);
    transform-origin: bottom;
    opacity: 0.58;
    animation: heroGridRun 11s linear infinite;
}

.social-hero::after {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    left: 50%;
    top: 44%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(65, 231, 255, 0.12), transparent 65%);
    filter: blur(10px);
    animation: heroAura 5s ease-in-out infinite;
}

.social-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 8, 18, 0.96) 0%, rgba(2, 8, 18, 0.68) 43%, rgba(2, 8, 18, 0.45) 100%),
        linear-gradient(180deg, transparent 54%, var(--social-bg) 100%);
}

.social-hero-content {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 40px));
    margin-inline: auto;
}

.social-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 9px 14px;
    border: 1px solid rgba(88, 255, 177, 0.34);
    border-radius: 999px;
    color: var(--social-green);
    background: rgba(88, 255, 177, 0.07);
    box-shadow: inset 0 0 20px rgba(88, 255, 177, 0.04), 0 0 18px rgba(88, 255, 177, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.status-pulse,
.knowledge-status-dot {
    position: relative;
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--social-green);
    box-shadow: 0 0 12px var(--social-green);
    animation: statusPulse 1.45s ease-out infinite;
}

.social-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--social-cyan);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.social-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    gap: 72px;
    align-items: center;
}

.social-title-copy h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(4rem, 8vw, 7.7rem);
    line-height: 0.88;
    letter-spacing: -0.075em;
    text-transform: uppercase;
    text-shadow: 0 0 35px rgba(65, 231, 255, 0.15);
}

.social-title-copy h1 span {
    display: block;
    margin-top: 0.11em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(65, 231, 255, 0.85);
    background: linear-gradient(90deg, var(--social-cyan), var(--social-green), var(--social-purple), var(--social-cyan));
    background-size: 260% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: titleGlowShift 7s linear infinite;
}

.social-hero-description {
    max-width: 700px;
    margin: 25px 0 0;
    color: #b7c7d4;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.8;
}

.social-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 31px;
}

.social-primary-button,
.social-secondary-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 21px;
    overflow: hidden;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.social-primary-button {
    color: #001017 !important;
    background: linear-gradient(135deg, var(--social-cyan), var(--social-green));
    box-shadow: 0 0 24px rgba(65, 231, 255, 0.26);
}

.social-secondary-button {
    border: 1px solid var(--social-border-bright);
    color: var(--social-white) !important;
    background: rgba(5, 18, 31, 0.68);
}

.social-primary-button::before,
.social-secondary-button::before {
    content: "";
    position: absolute;
    inset: -100% auto -100% -35%;
    width: 25%;
    transform: rotate(22deg);
    background: rgba(255, 255, 255, 0.35);
    transition: left 0.5s ease;
}

.social-primary-button:hover,
.social-secondary-button:hover {
    transform: translateY(-3px);
}

.social-primary-button:hover {
    box-shadow: 0 0 32px rgba(65, 231, 255, 0.44);
}

.social-secondary-button:hover {
    border-color: var(--social-cyan);
    box-shadow: var(--social-shadow);
}

.social-primary-button:hover::before,
.social-secondary-button:hover::before {
    left: 120%;
}

.social-hero-visual {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.trust-scanner {
    position: relative;
    width: min(390px, 90vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(65, 231, 255, 0.10) 0 10%, transparent 11%),
        repeating-radial-gradient(circle, transparent 0 31px, rgba(65, 231, 255, 0.07) 32px 33px),
        rgba(3, 13, 24, 0.72);
    border: 1px solid rgba(65, 231, 255, 0.3);
    box-shadow: inset 0 0 45px rgba(65, 231, 255, 0.08), 0 0 50px rgba(65, 231, 255, 0.12);
    animation: scannerFloat 5s ease-in-out infinite;
}

.trust-scanner::before,
.trust-scanner::after {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px dashed rgba(88, 255, 177, 0.24);
    border-radius: 50%;
    animation: rotateClockwise 17s linear infinite;
}

.trust-scanner::after {
    inset: 25%;
    border-style: solid;
    border-color: rgba(185, 140, 255, 0.27);
    animation-direction: reverse;
    animation-duration: 11s;
}

.trust-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
}

.trust-ring-one {
    inset: 5%;
    border-top-color: var(--social-cyan);
    border-right-color: rgba(65, 231, 255, 0.12);
    animation: rotateClockwise 9s linear infinite;
}

.trust-ring-two {
    inset: 17%;
    border-left-color: var(--social-green);
    border-bottom-color: rgba(88, 255, 177, 0.2);
    animation: rotateCounter 6s linear infinite;
}

.trust-ring-three {
    inset: 31%;
    border-top-color: var(--social-purple);
    border-bottom-color: var(--social-purple);
    animation: rotateClockwise 4.5s linear infinite;
}

.trust-sweep {
    position: absolute;
    inset: 5%;
    border-radius: 50%;
    overflow: hidden;
    animation: rotateClockwise 4s linear infinite;
}

.trust-sweep::before {
    content: "";
    position: absolute;
    width: 50%;
    height: 50%;
    left: 50%;
    top: 0;
    transform-origin: 0 100%;
    background: conic-gradient(from 180deg at 0 100%, rgba(65, 231, 255, 0.38), transparent 34deg);
    filter: blur(1px);
}

.trust-center {
    position: relative;
    z-index: 5;
    width: 118px;
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    gap: 7px;
    text-align: center;
    border: 1px solid var(--social-border-bright);
    border-radius: 50%;
    background: rgba(5, 21, 34, 0.94);
    box-shadow: 0 0 30px rgba(65, 231, 255, 0.23), inset 0 0 18px rgba(65, 231, 255, 0.1);
}

.trust-center i {
    color: var(--social-cyan);
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(65, 231, 255, 0.78));
}

.trust-center small {
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.trust-signal {
    position: absolute;
    z-index: 7;
    width: 48px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(65, 231, 255, 0.45);
    border-radius: 50%;
    color: var(--social-cyan);
    background: rgba(3, 15, 27, 0.92);
    box-shadow: 0 0 18px rgba(65, 231, 255, 0.18);
    animation: signalBob 3s ease-in-out infinite;
}

.signal-email { left: 5%; top: 24%; }
.signal-phone { right: 3%; top: 28%; animation-delay: -0.8s; }
.signal-link { left: 13%; bottom: 12%; animation-delay: -1.6s; }
.signal-message { right: 12%; bottom: 10%; animation-delay: -2.4s; }

.trust-terminal {
    position: absolute;
    z-index: 10;
    right: -30px;
    bottom: 2px;
    width: min(330px, 88vw);
    overflow: hidden;
    border: 1px solid rgba(65, 231, 255, 0.32);
    border-radius: 15px;
    background: rgba(2, 12, 22, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 25px rgba(65, 231, 255, 0.12);
    backdrop-filter: blur(14px);
    animation: terminalFloat 6s ease-in-out infinite;
}

.trust-terminal-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 13px;
    border-bottom: 1px solid rgba(65, 231, 255, 0.16);
    background: rgba(65, 231, 255, 0.05);
}

.trust-terminal-header > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--social-red);
}

.trust-terminal-header > span:nth-child(2) { background: var(--social-yellow); }
.trust-terminal-header > span:nth-child(3) { background: var(--social-green); }

.trust-terminal-header p {
    margin: 0 0 0 5px;
    color: #91a8ba;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.71rem;
}

.trust-terminal-body {
    padding: 15px 17px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.77rem;
    line-height: 1.8;
}

.trust-terminal-body p {
    margin: 0;
    color: #afc1ce;
}

.trust-terminal-body p span {
    color: var(--social-cyan);
}

.trust-terminal-body .trust-terminal-alert,
.trust-terminal-body .trust-terminal-alert span {
    color: var(--social-red);
}

.social-hero-data {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 55px;
}

.social-data-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 76px;
    padding: 14px 18px;
    overflow: hidden;
    border: 1px solid rgba(65, 231, 255, 0.16);
    border-radius: 13px;
    background: rgba(5, 21, 34, 0.67);
}

.social-data-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(65, 231, 255, 0.08), transparent);
    transform: translateX(-110%);
    animation: cardScan 5s linear infinite;
}

.social-data-card:nth-child(2)::after { animation-delay: 1.2s; }
.social-data-card:nth-child(3)::after { animation-delay: 2.4s; }
.social-data-card:nth-child(4)::after { animation-delay: 3.6s; }

.social-data-number {
    color: var(--social-cyan);
    font-family: Consolas, Monaco, monospace;
    font-size: 1.45rem;
    font-weight: 900;
}

.social-data-label {
    color: #d4e4ef;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ======================== SHARED CARDS ======================== */

.social-definition-grid,
.attack-card-grid,
.protection-grid {
    display: grid;
    gap: 22px;
}

.social-definition-grid {
    grid-template-columns: repeat(3, 1fr);
}

.social-definition-card,
.attack-card,
.protection-card,
.warning-panel,
.social-trust-map,
.warning-item,
.response-step,
.learning-link-card,
.knowledge-check-card,
.psychology-display {
    position: relative;
    border: 1px solid var(--social-border);
    background:
        linear-gradient(145deg, rgba(8, 28, 45, 0.92), rgba(4, 14, 25, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), var(--social-shadow);
}

.social-definition-card::before,
.attack-card::before,
.protection-card::before,
.warning-item::before,
.response-step::before,
.learning-link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 20%, rgba(65, 231, 255, 0.07), transparent 76%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-definition-card:hover::before,
.attack-card:hover::before,
.protection-card:hover::before,
.warning-item:hover::before,
.response-step:hover::before,
.learning-link-card:hover::before {
    opacity: 1;
}

.social-definition-card,
.attack-card,
.protection-card {
    overflow: hidden;
    border-radius: var(--social-radius);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.social-definition-card:hover,
.attack-card:hover,
.protection-card:hover {
    transform: translateY(-8px);
    border-color: rgba(65, 231, 255, 0.52);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32), 0 0 24px rgba(65, 231, 255, 0.13);
}

.social-definition-card {
    padding: 31px;
}

.definition-icon,
.attack-icon,
.learning-link-icon,
.knowledge-check-icon {
    display: grid;
    place-items: center;
    color: var(--social-cyan);
    background: rgba(65, 231, 255, 0.08);
    border: 1px solid rgba(65, 231, 255, 0.25);
    box-shadow: inset 0 0 18px rgba(65, 231, 255, 0.05), 0 0 15px rgba(65, 231, 255, 0.08);
}

.definition-icon {
    width: 58px;
    aspect-ratio: 1;
    margin-bottom: 22px;
    border-radius: 16px;
    font-size: 1.45rem;
}

.social-definition-card h3,
.attack-card h3,
.protection-card h3,
.warning-item h3,
.response-step h3,
.learning-link-card h3 {
    margin: 0;
    color: var(--social-white);
}

.social-definition-card p,
.attack-card p,
.protection-card p,
.warning-item p,
.response-step p {
    color: var(--social-muted);
    line-height: 1.74;
}

/* ======================== TIMELINE ======================== */

.manipulation-section,
.psychology-section,
.protection-section,
.knowledge-check-section {
    border-block: 1px solid rgba(65, 231, 255, 0.09);
    background:
        linear-gradient(90deg, rgba(65, 231, 255, 0.025) 1px, transparent 1px),
        linear-gradient(rgba(65, 231, 255, 0.025) 1px, transparent 1px),
        rgba(4, 14, 25, 0.55);
    background-size: 28px 28px;
}

.manipulation-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.manipulation-timeline::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 62px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--social-cyan), var(--social-green), var(--social-purple), transparent);
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(65, 231, 255, 0.5);
    animation: timelineFlow 4s linear infinite;
}

.timeline-step {
    position: relative;
    z-index: 1;
    padding: 0 8px;
    text-align: center;
}

.timeline-number {
    color: rgba(65, 231, 255, 0.38);
    font-family: Consolas, Monaco, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.timeline-icon {
    width: 74px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 14px auto 25px;
    border: 1px solid rgba(65, 231, 255, 0.48);
    border-radius: 50%;
    color: var(--social-cyan);
    background: #061522;
    box-shadow: 0 0 0 8px rgba(65, 231, 255, 0.04), 0 0 25px rgba(65, 231, 255, 0.12);
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.timeline-step:hover .timeline-icon {
    transform: scale(1.08) rotate(5deg);
}

.timeline-content h3 {
    margin: 0 0 10px;
}

.timeline-content p {
    margin: 0;
    color: var(--social-muted);
    font-size: 0.92rem;
    line-height: 1.68;
}

/* ======================== ATTACK TYPES ======================== */

.attack-card-grid {
    grid-template-columns: repeat(4, 1fr);
}

.attack-card {
    min-height: 328px;
    padding: 25px;
}

.attack-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -45% 25%;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(65, 231, 255, 0.11), transparent 68%);
}

.attack-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.attack-icon {
    width: 52px;
    aspect-ratio: 1;
    border-radius: 14px;
    font-size: 1.28rem;
}

.attack-level {
    padding: 6px 9px;
    border: 1px solid rgba(88, 255, 177, 0.26);
    border-radius: 6px;
    color: var(--social-green);
    background: rgba(88, 255, 177, 0.06);
    font-size: 0.63rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.attack-card h3 {
    font-size: 1.22rem;
}

.attack-card p {
    margin: 10px 0 16px;
    font-size: 0.91rem;
}

.attack-card ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.attack-card li {
    position: relative;
    padding-left: 17px;
    color: #c0cfda;
    font-size: 0.82rem;
    line-height: 1.52;
}

.attack-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--social-cyan);
    box-shadow: 0 0 7px var(--social-cyan);
}

/* ======================== PSYCHOLOGY ======================== */

.psychology-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
    align-items: center;
}

.psychology-content > p {
    margin: 18px 0 0;
}

.emotion-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.emotion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 12px 15px;
    border: 1px solid rgba(65, 231, 255, 0.15);
    border-radius: 11px;
    color: #d4e4ef;
    background: rgba(4, 17, 29, 0.62);
}

.emotion-item i {
    width: 25px;
    color: var(--social-cyan);
    text-align: center;
}

.psychology-display {
    overflow: hidden;
    border-radius: 20px;
}

.mind-scan-header,
.trust-map-header,
.warning-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 17px;
    border-bottom: 1px solid rgba(65, 231, 255, 0.15);
    color: #cce5f5;
    background: rgba(65, 231, 255, 0.045);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.mind-scan-header span:first-child,
.trust-map-header span:first-child {
    display: flex;
    align-items: center;
    gap: 9px;
}

.scan-status,
.trust-map-status {
    color: var(--social-green);
    animation: statusBlink 1.25s steps(2, end) infinite;
}

.mind-scan-body {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 30px;
    align-items: center;
    min-height: 350px;
    padding: 34px;
    background:
        linear-gradient(rgba(65, 231, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(65, 231, 255, 0.035) 1px, transparent 1px);
    background-size: 24px 24px;
}

.digital-head {
    position: relative;
    min-height: 230px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(65, 231, 255, 0.2);
    border-radius: 18px;
    background: radial-gradient(circle, rgba(65, 231, 255, 0.12), transparent 68%);
}

.digital-head i {
    color: var(--social-cyan);
    font-size: clamp(6rem, 12vw, 9rem);
    filter: drop-shadow(0 0 18px rgba(65, 231, 255, 0.48));
    animation: digitalHeadPulse 3.5s ease-in-out infinite;
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--social-green);
    box-shadow: 0 0 14px var(--social-green), 0 0 32px var(--social-green);
    animation: verticalScan 3s linear infinite;
}

.trigger-meter {
    display: grid;
    gap: 22px;
}

.trigger-row {
    display: grid;
    gap: 9px;
}

.trigger-row > span {
    color: #c5d4df;
    font-size: 0.82rem;
    font-weight: 700;
}

.meter-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.meter-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--social-cyan), var(--social-green));
    box-shadow: 0 0 10px rgba(65, 231, 255, 0.6);
    transform-origin: left;
    animation: meterLoad 2.2s ease both, meterGlow 2.2s ease-in-out infinite alternate;
}

/* ======================== WARNING DASHBOARD ======================== */

.warning-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.warning-panel,
.social-trust-map {
    overflow: hidden;
    border-radius: 19px;
}

.warning-panel-header {
    justify-content: flex-start;
    color: var(--social-red);
}

.inspection-message {
    padding: 12px 19px 20px;
}

.inspection-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 22px;
    gap: 11px;
    align-items: center;
    padding: 17px 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.inspection-row:last-child {
    border-bottom: 0;
}

.inspection-row span {
    color: #7992a5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inspection-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #d8e6ef;
    font-size: 0.82rem;
}

.inspection-row i {
    color: var(--social-red);
    filter: drop-shadow(0 0 7px rgba(255, 96, 120, 0.65));
    animation: warningPulse 1.6s ease-in-out infinite;
}

.trust-map-body {
    position: relative;
    min-height: 345px;
    overflow: hidden;
}

.trust-map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(65, 231, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(65, 231, 255, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: socialGridMove 10s linear infinite;
}

.trust-map-sweep {
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg, transparent 0 300deg, rgba(65, 231, 255, 0.22) 340deg, transparent 360deg);
    animation: rotateClockwise 5s linear infinite;
}

.trust-map-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 92px;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    display: grid;
    place-content: center;
    gap: 5px;
    text-align: center;
    border: 1px solid rgba(65, 231, 255, 0.55);
    border-radius: 50%;
    color: var(--social-cyan);
    background: rgba(3, 16, 28, 0.95);
    box-shadow: 0 0 30px rgba(65, 231, 255, 0.25);
}

.trust-map-center i { font-size: 1.55rem; }
.trust-map-center strong { font-size: 0.68rem; letter-spacing: 0.11em; }

.trust-map-node {
    position: absolute;
    z-index: 3;
    width: 94px;
    min-height: 61px;
    display: grid;
    place-content: center;
    gap: 5px;
    text-align: center;
    border: 1px solid rgba(65, 231, 255, 0.25);
    border-radius: 11px;
    color: #cfe4f2;
    background: rgba(3, 16, 28, 0.9);
    font-size: 0.68rem;
    animation: nodeFloat 4s ease-in-out infinite;
}

.trust-map-node i { color: var(--social-cyan); }
.trust-authority { left: 8%; top: 13%; }
.trust-urgency { right: 8%; top: 13%; animation-delay: -1s; }
.trust-fear { left: 8%; bottom: 12%; animation-delay: -2s; }
.trust-reward { right: 8%; bottom: 12%; animation-delay: -3s; }

.trust-map-line {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 29%;
    height: 1px;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(65, 231, 255, 0.7), transparent);
    box-shadow: 0 0 7px rgba(65, 231, 255, 0.48);
}

.map-line-top { transform: rotate(-142deg); }
.map-line-right { transform: rotate(-38deg); }
.map-line-bottom { transform: rotate(142deg); }
.map-line-left { transform: rotate(38deg); }

.trust-map-footer {
    padding: 11px 15px;
    border-top: 1px solid rgba(65, 231, 255, 0.12);
    color: #7890a3;
    font-size: 0.69rem;
    text-align: center;
    letter-spacing: 0.04em;
}

.warning-checklist {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.warning-item {
    display: grid;
    grid-template-columns: 47px 1fr;
    gap: 14px;
    padding: 19px;
    border-radius: 15px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.warning-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 96, 120, 0.45);
}

.warning-item > i {
    width: 43px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--social-red);
    background: rgba(255, 96, 120, 0.08);
}

.warning-item h3 { font-size: 1rem; }
.warning-item p { margin: 7px 0 0; font-size: 0.82rem; }

/* ======================== PROTECTION ======================== */

.protection-grid {
    grid-template-columns: repeat(3, 1fr);
}

.protection-card {
    min-height: 300px;
    padding: 29px;
}

.protection-card > i {
    width: 59px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 26px 0 20px;
    border: 1px solid rgba(88, 255, 177, 0.28);
    border-radius: 16px;
    color: var(--social-green);
    background: rgba(88, 255, 177, 0.07);
    font-size: 1.38rem;
}

.protection-number {
    position: absolute;
    right: 22px;
    top: 18px;
    color: rgba(65, 231, 255, 0.22);
    font-family: Consolas, Monaco, monospace;
    font-size: 2.5rem;
    font-weight: 900;
}

.protection-card h3 { font-size: 1.16rem; }
.protection-card p { margin: 11px 0 0; font-size: 0.9rem; }

/* ======================== RESPONSE ======================== */

.response-layout {
    display: grid;
    grid-template-columns: 0.83fr 1.17fr;
    gap: 65px;
    align-items: start;
}

.response-heading {
    position: sticky;
    top: 130px;
}

.response-heading > p {
    margin: 18px 0 0;
}

.response-alert {
    display: flex;
    gap: 13px;
    margin-top: 27px;
    padding: 17px;
    border: 1px solid rgba(255, 215, 94, 0.25);
    border-radius: 13px;
    color: #eadfaa;
    background: rgba(255, 215, 94, 0.06);
}

.response-alert i {
    color: var(--social-yellow);
    margin-top: 4px;
}

.response-alert p {
    margin: 0;
    color: inherit;
    font-size: 0.88rem;
    line-height: 1.62;
}

.response-steps {
    display: grid;
    gap: 15px;
}

.response-step {
    display: grid;
    grid-template-columns: 57px 1fr;
    gap: 18px;
    padding: 23px;
    border-radius: 17px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.response-step:hover {
    transform: translateX(7px);
    border-color: rgba(65, 231, 255, 0.45);
}

.response-step-number {
    width: 51px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(65, 231, 255, 0.34);
    border-radius: 50%;
    color: var(--social-cyan);
    background: rgba(65, 231, 255, 0.07);
    font-family: Consolas, Monaco, monospace;
    font-weight: 900;
}

.response-step h3 { font-size: 1.05rem; }
.response-step p { margin: 7px 0 0; font-size: 0.87rem; }

/* ======================== KNOWLEDGE / CONTINUE ======================== */

.knowledge-check-card {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 34px;
    overflow: hidden;
    border-radius: 22px;
}

.knowledge-check-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 30%, rgba(65, 231, 255, 0.08), transparent 70%);
    transform: translateX(-100%);
    animation: cardScan 6s linear infinite;
}

.knowledge-check-icon {
    width: 82px;
    aspect-ratio: 1;
    border-radius: 22px;
    font-size: 2rem;
}

.knowledge-check-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
}

.knowledge-check-content > p {
    margin: 11px 0 0;
    font-size: 0.95rem;
}

.knowledge-check-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(88, 255, 177, 0.25);
    border-radius: 13px;
    background: rgba(88, 255, 177, 0.06);
}

.knowledge-check-status div {
    display: grid;
    gap: 2px;
}

.knowledge-check-status small {
    color: #8fa8b8;
    font-size: 0.59rem;
    letter-spacing: 0.12em;
}

.knowledge-check-status strong {
    color: var(--social-green);
    font-size: 0.8rem;
    letter-spacing: 0.09em;
}

.continue-learning-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 45px;
    align-items: center;
}

.continue-learning-content > p {
    margin: 17px 0 0;
}

.continue-learning-links {
    display: grid;
    gap: 14px;
}

.learning-link-card {
    display: grid;
    grid-template-columns: 58px 1fr 22px;
    gap: 17px;
    align-items: center;
    padding: 19px;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.learning-link-card:hover {
    transform: translateX(8px);
    border-color: rgba(65, 231, 255, 0.48);
    box-shadow: 0 0 25px rgba(65, 231, 255, 0.12);
}

.learning-link-icon {
    width: 54px;
    aspect-ratio: 1;
    border-radius: 14px;
}

.learning-link-card span {
    color: var(--social-green);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.learning-link-card h3 {
    margin-top: 4px;
    font-size: 1.05rem;
}

.learning-link-card > i {
    color: var(--social-cyan);
    transition: transform 0.25s ease;
}

.learning-link-card:hover > i {
    transform: translateX(4px);
}

/* ======================== RESPONSIVE ======================== */

@media (max-width: 1100px) {
    .social-title-row {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .social-title-copy {
        max-width: 850px;
    }

    .social-hero-visual {
        min-height: 480px;
    }

    .attack-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .protection-grid,
    .warning-checklist {
        grid-template-columns: repeat(2, 1fr);
    }

    .psychology-layout,
    .response-layout,
    .continue-learning-section {
        grid-template-columns: 1fr;
    }

    .response-heading {
        position: static;
    }
}

@media (max-width: 850px) {
    .social-engineering-page section {
        padding-block: 72px;
    }

    .social-hero {
        min-height: auto;
        padding-top: 95px !important;
    }

    .social-hero-data,
    .social-definition-grid,
    .manipulation-timeline,
    .warning-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .manipulation-timeline::before {
        display: none;
    }

    .warning-checklist {
        grid-column: auto;
    }

    .knowledge-check-card {
        grid-template-columns: 76px 1fr;
    }

    .knowledge-check-status {
        grid-column: 1 / -1;
        width: fit-content;
    }
}

@media (max-width: 620px) {
    .section-container,
    .social-hero-content {
        width: min(100% - 26px, 1180px);
    }

    .social-engineering-page section {
        padding-block: 60px;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .social-title-copy h1 {
        font-size: clamp(3rem, 17vw, 5rem);
    }

    .social-hero-actions {
        flex-direction: column;
    }

    .social-primary-button,
    .social-secondary-button {
        width: 100%;
    }

    .social-hero-data,
    .social-definition-grid,
    .manipulation-timeline,
    .attack-card-grid,
    .protection-grid,
    .warning-dashboard,
    .warning-checklist,
    .emotion-list {
        grid-template-columns: 1fr;
    }

    .social-hero-visual {
        min-height: 430px;
    }

    .trust-scanner {
        width: min(325px, 92vw);
    }

    .trust-terminal {
        right: 50%;
        transform: translateX(50%);
        width: min(310px, 92vw);
    }

    .mind-scan-body {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .digital-head {
        min-height: 190px;
    }

    .trust-map-node {
        width: 78px;
        min-height: 54px;
        font-size: 0.6rem;
    }

    .inspection-row {
        grid-template-columns: 1fr 24px;
    }

    .inspection-row span {
        grid-column: 1 / -1;
    }

    .knowledge-check-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .knowledge-check-icon,
    .knowledge-check-status {
        margin-inline: auto;
    }

    .response-step {
        grid-template-columns: 50px 1fr;
        padding: 19px;
    }
}

/* ======================== MOTION ======================== */

@keyframes socialGridMove {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 42px, 42px 0; }
}

@keyframes socialSignalDrift {
    from { transform: translate3d(-1%, -1%, 0); }
    to { transform: translate3d(1%, 1%, 0); }
}

@keyframes heroGridRun {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 100px, 100px 0; }
}

@keyframes heroAura {
    0%, 100% { opacity: 0.48; transform: translate(-50%, -50%) scale(0.94); }
    50% { opacity: 0.92; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(88, 255, 177, 0.65), 0 0 12px var(--social-green); }
    75%, 100% { box-shadow: 0 0 0 9px rgba(88, 255, 177, 0), 0 0 12px var(--social-green); }
}

@keyframes titleGlowShift {
    to { background-position: 260% center; }
}

@keyframes rotateClockwise {
    to { transform: rotate(360deg); }
}

@keyframes rotateCounter {
    to { transform: rotate(-360deg); }
}

@keyframes scannerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes signalBob {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-7px) scale(1.05); }
}

@keyframes terminalFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes cardScan {
    0% { transform: translateX(-110%); }
    45%, 100% { transform: translateX(130%); }
}

@keyframes timelineFlow {
    to { background-position: 200% 0; }
}

@keyframes statusBlink {
    50% { opacity: 0.35; }
}

@keyframes digitalHeadPulse {
    0%, 100% { transform: scale(0.98); opacity: 0.78; }
    50% { transform: scale(1.04); opacity: 1; }
}

@keyframes verticalScan {
    from { top: 0; }
    to { top: calc(100% - 3px); }
}

@keyframes meterLoad {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes meterGlow {
    from { filter: brightness(0.9); }
    to { filter: brightness(1.35); }
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.13); opacity: 1; }
}

@keyframes nodeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .social-engineering-page *,
    .social-engineering-page *::before,
    .social-engineering-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
