/* =========================================================
   Cybersecurity Life — Programming Page
   File: programming.css
   ========================================================= */

:root {
    --program-bg: #050914;
    --program-bg-soft: #091322;
    --program-panel: rgba(9, 22, 39, 0.86);
    --program-panel-strong: rgba(7, 18, 32, 0.96);
    --program-border: rgba(62, 226, 255, 0.2);
    --program-cyan: #3ee2ff;
    --program-blue: #4d7cff;
    --program-green: #46ffb2;
    --program-purple: #b36bff;
    --program-orange: #ffb454;
    --program-white: #f4fbff;
    --program-muted: #9ab0c5;
    --program-danger: #ff6b81;
    --program-shadow: 0 0 28px rgba(62, 226, 255, 0.14);
    --program-radius: 22px;
}

html {
    scroll-behavior: smooth;
}

.programming-page {
    position: relative;
    overflow: hidden;
    color: var(--program-white);
    background:
        radial-gradient(circle at 15% 20%, rgba(77, 124, 255, 0.12), transparent 34%),
        radial-gradient(circle at 85% 12%, rgba(179, 107, 255, 0.1), transparent 30%),
        linear-gradient(180deg, #040812 0%, #07101c 52%, #040812 100%);
    isolation: isolate;
}

.programming-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(62, 226, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 226, 255, 0.055) 1px, transparent 1px);
    background-size: 54px 54px;
    animation: programmingGridMove 18s linear infinite;
    mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,.85) 70%, transparent 100%);
}

.programming-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 44%, rgba(62, 226, 255, 0.035) 50%, transparent 56% 100%),
        radial-gradient(circle at center, transparent 0 45%, rgba(0, 0, 0, 0.38) 100%);
    background-size: 220% 100%, auto;
    animation: programmingLightSweep 12s ease-in-out infinite;
}

.programming-page *,
.programming-page *::before,
.programming-page *::after {
    box-sizing: border-box;
}

.programming-section,
.programming-hero-content,
.hero-code-window,
.programming-cta-content {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* HERO */
.programming-hero {
    position: relative;
    min-height: 760px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    align-items: center;
    gap: 58px;
    padding: 110px max(20px, calc((100vw - 1180px) / 2)) 90px;
    border-bottom: 1px solid rgba(62, 226, 255, 0.14);
    background:
        linear-gradient(135deg, rgba(5, 12, 23, 0.96), rgba(5, 13, 28, 0.84)),
        radial-gradient(circle at 70% 36%, rgba(62, 226, 255, 0.1), transparent 28%);
}

.programming-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(62, 226, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 226, 255, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.7;
    animation: heroGridDrift 20s linear infinite;
}

.programming-hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 35%, rgba(77, 124, 255, 0.18), transparent 32%),
        radial-gradient(circle at 85% 25%, rgba(70, 255, 178, 0.1), transparent 28%),
        linear-gradient(180deg, transparent 65%, rgba(4, 8, 18, 0.92) 100%);
}

.programming-hero-content,
.hero-code-window {
    position: relative;
    z-index: 2;
    width: 100%;
}

.programming-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    margin-bottom: 22px;
    border: 1px solid rgba(70, 255, 178, 0.34);
    border-radius: 999px;
    color: var(--program-green);
    background: rgba(70, 255, 178, 0.07);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 0 24px rgba(70, 255, 178, 0.08);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--program-green);
    box-shadow: 0 0 0 0 rgba(70, 255, 178, 0.7);
    animation: statusPulse 1.8s infinite;
}

.programming-eyebrow,
.section-label {
    margin: 0 0 12px;
    color: var(--program-cyan);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.programming-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.3rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.programming-hero h1 span {
    display: block;
    margin-top: 8px;
    color: transparent;
    background: linear-gradient(90deg, var(--program-cyan), var(--program-green), var(--program-purple));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: titleGradient 7s linear infinite;
    filter: drop-shadow(0 0 18px rgba(62, 226, 255, 0.18));
}

.programming-hero-description {
    max-width: 720px;
    margin: 26px 0 0;
    color: #b8c9d9;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.85;
}

.programming-hero-buttons,
.programming-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.programming-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 23px;
    overflow: hidden;
    border: 1px solid rgba(62, 226, 255, 0.28);
    border-radius: 12px;
    color: var(--program-white);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.025em;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.programming-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-115%);
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent);
    transition: transform 0.55s ease;
}

.programming-btn:hover::before {
    transform: translateX(115%);
}

.programming-btn:hover {
    transform: translateY(-3px);
    border-color: var(--program-cyan);
    box-shadow: 0 12px 28px rgba(62, 226, 255, 0.15);
}

.programming-btn-primary {
    color: #031018;
    border-color: transparent;
    background: linear-gradient(135deg, var(--program-cyan), var(--program-green));
    box-shadow: 0 10px 28px rgba(62, 226, 255, 0.18);
}

.programming-btn-secondary {
    background: rgba(8, 21, 37, 0.72);
}

/* CODE WINDOW */
.hero-code-window,
.security-code-panel {
    overflow: hidden;
    border: 1px solid rgba(62, 226, 255, 0.27);
    border-radius: 20px;
    background: rgba(4, 12, 23, 0.94);
    box-shadow: 0 30px 70px rgba(0,0,0,.42), 0 0 36px rgba(62, 226, 255, 0.1);
}

.hero-code-window {
    align-self: center;
    animation: codeWindowFloat 6s ease-in-out infinite;
}

.code-window-header,
.security-code-header {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(62, 226, 255, 0.14);
    background: linear-gradient(180deg, rgba(19, 39, 59, 0.98), rgba(8, 20, 35, 0.96));
}

.code-window-header p {
    margin: 0 auto 0 0;
    color: #bfd0dd;
    font: 600 0.88rem/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.code-window-dots {
    display: flex;
    gap: 7px;
}

.code-window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.code-window-dots span:nth-child(1) { background: #ff6b81; }
.code-window-dots span:nth-child(2) { background: #ffc857; }
.code-window-dots span:nth-child(3) { background: #46ffb2; }

.code-status,
.secure-badge {
    color: var(--program-green);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.code-status::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    animation: statusBlink 1.25s steps(2, end) infinite;
}

.code-window-body,
.security-code-content {
    position: relative;
    padding: 22px 0 20px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.code-window-body::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(62, 226, 255, 0.045) 48%, transparent 52%);
    background-size: 100% 72px;
    animation: terminalScan 4.8s linear infinite;
}

.code-line {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    min-height: 31px;
    padding: 4px 18px;
    color: #d9e5ee;
    font-size: 0.9rem;
    line-height: 1.5;
}

.line-number {
    color: #466178;
    user-select: none;
}

.active-code-line {
    border-left: 2px solid var(--program-cyan);
    background: linear-gradient(90deg, rgba(62, 226, 255, 0.12), transparent 75%);
    animation: activeLineGlow 2.3s ease-in-out infinite;
}

.code-indent { display: inline-block; padding-left: 22px; }
.code-purple { color: var(--program-purple); }
.code-white { color: #e6f0f6; }
.code-blue { color: #65a7ff; }
.code-green { color: var(--program-green); }
.code-orange { color: var(--program-orange); }

.terminal-result {
    margin: 18px 20px 0;
    padding: 13px 15px;
    border: 1px solid rgba(70, 255, 178, 0.2);
    border-radius: 9px;
    color: var(--program-green);
    background: rgba(70, 255, 178, 0.055);
    font-size: 0.86rem;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    margin-left: 6px;
    vertical-align: -2px;
    background: var(--program-green);
    animation: cursorBlink 0.85s steps(2, end) infinite;
}

/* GENERAL SECTIONS */
.programming-section {
    position: relative;
    padding-block: 96px;
}

.programming-dark-section,
.secure-coding-section,
.learning-roadmap-section {
    width: 100%;
    max-width: none;
    padding-inline: max(20px, calc((100vw - 1180px) / 2));
    border-block: 1px solid rgba(62, 226, 255, 0.1);
    background:
        linear-gradient(rgba(5, 15, 27, 0.86), rgba(5, 15, 27, 0.93)),
        linear-gradient(rgba(62, 226, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 226, 255, 0.045) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
}

.programming-section-heading {
    max-width: 760px;
    margin-bottom: 44px;
}

.programming-section-heading h2,
.programming-cta-content h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.programming-section-heading > p:last-child,
.programming-cta-content > p:not(.section-label) {
    margin: 18px 0 0;
    color: var(--program-muted);
    line-height: 1.82;
    font-size: 1.04rem;
}

.overview-card-grid,
.language-grid,
.secure-coding-grid,
.project-grid,
.development-process-grid {
    display: grid;
    gap: 22px;
}

.overview-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.language-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.secure-coding-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.development-process-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.overview-card,
.language-card,
.secure-coding-card,
.project-card,
.process-card,
.cyber-programming-item,
.roadmap-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--program-border);
    border-radius: var(--program-radius);
    background: linear-gradient(145deg, rgba(12, 29, 48, 0.9), rgba(5, 15, 28, 0.92));
    box-shadow: 0 18px 38px rgba(0,0,0,.2);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.overview-card::before,
.language-card::before,
.secure-coding-card::before,
.project-card::before,
.process-card::before,
.cyber-programming-item::before,
.roadmap-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 20%, rgba(62, 226, 255, 0.07), transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.75s ease;
}

.overview-card:hover,
.language-card:hover,
.secure-coding-card:hover,
.project-card:hover,
.process-card:hover,
.cyber-programming-item:hover,
.roadmap-card:hover {
    transform: translateY(-8px);
    border-color: rgba(62, 226, 255, 0.55);
    box-shadow: 0 24px 46px rgba(0,0,0,.28), 0 0 28px rgba(62, 226, 255, 0.1);
}

.overview-card:hover::before,
.language-card:hover::before,
.secure-coding-card:hover::before,
.project-card:hover::before,
.process-card:hover::before,
.cyber-programming-item:hover::before,
.roadmap-card:hover::before {
    transform: translateX(120%);
}

.overview-card {
    min-height: 270px;
    padding: 28px;
}

.overview-icon,
.language-symbol,
.project-icon,
.secure-card-number,
.process-card > span {
    display: inline-grid;
    place-items: center;
    color: var(--program-cyan);
    border: 1px solid rgba(62, 226, 255, 0.25);
    background: rgba(62, 226, 255, 0.07);
    box-shadow: inset 0 0 18px rgba(62, 226, 255, 0.04);
}

.overview-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    border-radius: 15px;
    font: 800 1rem/1 ui-monospace, monospace;
}

.overview-card h3,
.language-card h3,
.secure-coding-card h3,
.project-card h3,
.process-card h3,
.cyber-programming-item h3,
.roadmap-card h3 {
    margin: 0;
    color: var(--program-white);
    font-size: 1.25rem;
}

.overview-card p,
.language-card > p,
.secure-coding-card p,
.project-card p,
.process-card p,
.cyber-programming-item p,
.roadmap-card p {
    margin: 14px 0 0;
    color: var(--program-muted);
    line-height: 1.72;
}

/* CYBER PROGRAMMING */
.cyber-programming-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.85fr);
    gap: 34px;
    align-items: start;
}

.cyber-programming-list {
    display: grid;
    gap: 15px;
}

.cyber-programming-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
}

.item-number {
    display: grid;
    place-items: center;
    align-self: start;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    color: var(--program-green);
    background: rgba(70, 255, 178, 0.08);
    border: 1px solid rgba(70, 255, 178, 0.22);
    font-weight: 900;
}

.security-code-panel {
    position: sticky;
    top: 110px;
}

.security-code-header {
    justify-content: space-between;
    font-family: ui-monospace, monospace;
}

.security-code-content {
    padding: 24px;
    min-height: 390px;
}

.security-code-content p {
    margin: 0 0 7px;
    white-space: nowrap;
    font: 0.88rem/1.55 ui-monospace, monospace;
}

.code-indent-text { padding-left: 22px; }
.code-double-indent { padding-left: 44px; }
.code-triple-indent { padding-left: 66px; }

.security-code-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-top: 1px solid rgba(62, 226, 255, 0.13);
    color: #a9becf;
    background: rgba(62, 226, 255, 0.035);
}

.security-code-footer p { margin: 0; line-height: 1.55; }
.shield-symbol { color: var(--program-green); font-size: 1.35rem; animation: shieldGlow 2s ease-in-out infinite; }

/* LANGUAGE CARDS */
.language-card {
    min-height: 310px;
    padding: 24px;
}

.language-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 25px;
}

.language-symbol {
    min-width: 54px;
    height: 54px;
    padding-inline: 10px;
    border-radius: 14px;
    font: 900 1rem/1 ui-monospace, monospace;
}

.language-level,
.project-difficulty,
.roadmap-stage {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid rgba(62, 226, 255, 0.2);
    border-radius: 999px;
    color: var(--program-cyan);
    background: rgba(62, 226, 255, 0.05);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.language-tags,
.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.language-tags span,
.project-tools span {
    padding: 7px 9px;
    border-radius: 8px;
    color: #b7cada;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    font-size: 0.74rem;
}

.python-card .language-symbol { color: #ffd95a; border-color: rgba(255,217,90,.3); background: rgba(255,217,90,.07); }
.javascript-card .language-symbol { color: #f7df1e; border-color: rgba(247,223,30,.3); background: rgba(247,223,30,.07); }
.sql-card .language-symbol { color: #6fb8ff; }
.bash-card .language-symbol { color: #82ff9c; border-color: rgba(130,255,156,.3); background: rgba(130,255,156,.07); }
.powershell-card .language-symbol { color: #69a9ff; }
.c-card .language-symbol { color: #b58cff; border-color: rgba(181,140,255,.3); background: rgba(181,140,255,.07); }
.java-card .language-symbol { color: #ff8b63; border-color: rgba(255,139,99,.3); background: rgba(255,139,99,.07); }
.html-card .language-symbol { color: #ff805f; border-color: rgba(255,128,95,.3); background: rgba(255,128,95,.07); }

/* SECURE CODING */
.secure-coding-card {
    min-height: 240px;
    padding: 25px;
}

.secure-card-number,
.process-card > span {
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 13px;
    font-weight: 900;
}

/* PROJECTS */
.project-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
}

.project-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font: 900 0.9rem/1 ui-monospace, monospace;
}

.project-difficulty { margin-bottom: 12px; color: var(--program-green); border-color: rgba(70,255,178,.22); background: rgba(70,255,178,.05); }

.authorization-notice {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 30px;
    padding: 24px;
    border: 1px solid rgba(255, 180, 84, 0.26);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,180,84,.08), rgba(255,107,129,.05));
}

.notice-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--program-orange);
    border: 1px solid rgba(255,180,84,.35);
    background: rgba(255,180,84,.08);
    font-size: 1.4rem;
    font-weight: 900;
    animation: warningPulse 2.2s ease-in-out infinite;
}

.authorization-notice h3 { margin: 0; }
.authorization-notice p { margin: 8px 0 0; color: var(--program-muted); line-height: 1.7; }

/* ROADMAP */
.roadmap-container {
    position: relative;
    display: grid;
    gap: 26px;
    max-width: 930px;
}

.roadmap-line {
    position: absolute;
    left: 28px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    overflow: hidden;
    background: rgba(62, 226, 255, 0.16);
}

.roadmap-line::after {
    content: "";
    position: absolute;
    inset: -35% 0 auto;
    height: 35%;
    background: linear-gradient(to bottom, transparent, var(--program-cyan), transparent);
    box-shadow: 0 0 14px var(--program-cyan);
    animation: roadmapFlow 4s linear infinite;
}

.roadmap-step {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.roadmap-marker {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(62, 226, 255, 0.48);
    border-radius: 50%;
    color: #031018;
    background: linear-gradient(135deg, var(--program-cyan), var(--program-green));
    font-weight: 900;
    box-shadow: 0 0 24px rgba(62, 226, 255, 0.2);
}

.roadmap-card {
    padding: 23px 25px;
}

.roadmap-stage { margin-bottom: 10px; }

/* PROCESS */
.process-card {
    min-height: 245px;
    padding: 22px;
}

/* CTA */
.programming-cta-section {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 560px;
    padding: 90px 20px;
    overflow: hidden;
    border-top: 1px solid rgba(62, 226, 255, 0.14);
    background:
        radial-gradient(circle at center, rgba(62, 226, 255, 0.13), transparent 42%),
        linear-gradient(180deg, rgba(5, 14, 27, 0.86), rgba(3, 8, 16, 0.98));
}

.programming-cta-grid {
    position: absolute;
    inset: -20%;
    transform: perspective(700px) rotateX(62deg) translateY(18%);
    transform-origin: center;
    background-image:
        linear-gradient(rgba(62, 226, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 226, 255, 0.12) 1px, transparent 1px);
    background-size: 54px 54px;
    animation: ctaGridMove 7s linear infinite;
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 82%, transparent 100%);
}

.programming-cta-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    text-align: center;
}

.cta-code-symbol {
    display: inline-grid;
    place-items: center;
    width: 94px;
    height: 94px;
    margin-bottom: 25px;
    border: 1px solid rgba(62, 226, 255, 0.35);
    border-radius: 24px;
    color: var(--program-cyan);
    background: rgba(62, 226, 255, 0.07);
    font: 900 1.8rem/1 ui-monospace, monospace;
    box-shadow: 0 0 38px rgba(62, 226, 255, 0.14);
    animation: codeSymbolFloat 4s ease-in-out infinite;
}

.programming-cta-buttons { justify-content: center; }

/* ANIMATIONS */
@keyframes programmingGridMove {
    to { background-position: 54px 54px, 54px 54px; }
}

@keyframes programmingLightSweep {
    0%, 100% { background-position: 140% 0, center; }
    50% { background-position: -40% 0, center; }
}

@keyframes heroGridDrift {
    to { background-position: 64px 64px, 64px 64px; }
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(70,255,178,.65); }
    70% { box-shadow: 0 0 0 9px rgba(70,255,178,0); }
    100% { box-shadow: 0 0 0 0 rgba(70,255,178,0); }
}

@keyframes titleGradient {
    to { background-position: 200% center; }
}

@keyframes codeWindowFloat {
    0%, 100% { transform: translateY(0) rotateX(0.001deg); }
    50% { transform: translateY(-13px) rotateX(0.001deg); }
}

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

@keyframes terminalScan {
    from { background-position: 0 -72px; }
    to { background-position: 0 calc(100% + 72px); }
}

@keyframes activeLineGlow {
    0%, 100% { background-color: rgba(62,226,255,.055); }
    50% { background-color: rgba(62,226,255,.14); }
}

@keyframes cursorBlink {
    50% { opacity: 0; }
}

@keyframes shieldGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(70,255,178,.35)); }
    50% { filter: drop-shadow(0 0 12px rgba(70,255,178,.9)); }
}

@keyframes warningPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,180,84,.18); }
    50% { box-shadow: 0 0 0 10px rgba(255,180,84,0); }
}

@keyframes roadmapFlow {
    to { transform: translateY(390%); }
}

@keyframes ctaGridMove {
    to { background-position: 0 54px, 54px 0; }
}

@keyframes codeSymbolFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* RESPONSIVE */
@media (max-width: 1080px) {
    .programming-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 105px;
    }

    .programming-hero-content,
    .hero-code-window {
        max-width: 820px;
    }

    .language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .development-process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cyber-programming-layout { grid-template-columns: 1fr; }
    .security-code-panel { position: relative; top: auto; }
}

@media (max-width: 780px) {
    .programming-section,
    .programming-hero-content,
    .hero-code-window,
    .programming-cta-content {
        width: min(100% - 28px, 1180px);
    }

    .programming-hero {
        padding: 84px 14px 70px;
    }

    .programming-hero h1 {
        font-size: clamp(2.55rem, 13vw, 4.4rem);
    }

    .programming-section { padding-block: 72px; }

    .overview-card-grid,
    .secure-coding-grid,
    .project-grid,
    .development-process-grid {
        grid-template-columns: 1fr;
    }

    .language-grid { grid-template-columns: 1fr; }

    .project-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 16px;
    }

    .project-icon {
        width: 52px;
        height: 52px;
        border-radius: 13px;
    }

    .security-code-content { overflow-x: auto; }
    .code-window-body { overflow-x: auto; }
    .code-line { min-width: 560px; }
    .security-code-content p { min-width: max-content; }
}

@media (max-width: 540px) {
    .programming-status {
        font-size: 0.68rem;
        letter-spacing: 0.07em;
    }

    .programming-hero-buttons,
    .programming-cta-buttons {
        flex-direction: column;
    }

    .programming-btn { width: 100%; }

    .overview-card,
    .language-card,
    .secure-coding-card,
    .project-card,
    .process-card,
    .roadmap-card,
    .cyber-programming-item {
        border-radius: 16px;
    }

    .cyber-programming-item,
    .project-card,
    .authorization-notice {
        grid-template-columns: 1fr;
    }

    .roadmap-step {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 13px;
    }

    .roadmap-marker {
        width: 44px;
        height: 44px;
    }

    .roadmap-line { left: 21px; }

    .code-window-header,
    .security-code-header {
        padding-inline: 12px;
    }

    .code-window-header p { font-size: 0.74rem; }
    .code-status, .secure-badge { font-size: 0.6rem; }
}

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