/* ================================================================
   HARISH V PORTFOLIO - SHARED STYLES
   This file is used by index.html and free-services.html.
   ================================================================ */

:root {
  --bg: #020202;
  --surface: rgba(255, 255, 255, .045);
  --surface-solid: #0b0b0f;
  --line: rgba(255, 255, 255, .11);
  --text: #ffffff;
  --muted: #a8afbd;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --danger: #fb7185;
  --success: #34d399;
  --gradient: linear-gradient(100deg, var(--purple), var(--cyan));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Noto Sans Tamil", "Noto Sans Devanagari", system-ui, sans-serif;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Animated background canvas stays behind all page content. */
#matrix { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .13; }
.cursor-glow {
  position: fixed; width: 260px; height: 260px; z-index: -1; pointer-events: none;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .18), transparent 70%);
}

/* =========================== NAVIGATION ======================== */
.site-nav {
  position: fixed; inset: 0 0 auto; z-index: 1000; height: 76px; padding: 12px clamp(18px, 4vw, 54px);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(2, 2, 2, .84);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: max-content; }
.nav-logo-img {
  width: 46px; height: 46px; display: block; border: 2px solid rgba(139, 92, 246, .7); border-radius: 50%;
  object-fit: cover; background: var(--surface-solid); box-shadow: 0 0 18px rgba(139, 92, 246, .25); transition: transform .25s;
}
.brand:hover .nav-logo-img { transform: rotate(5deg) scale(1.06); }
.brand-name { font-size: 1.16rem; font-weight: 700; letter-spacing: .03em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; list-style: none; gap: 3px; }
.nav-links a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 11px; border-radius: 9px; color: #d6d9e1; text-decoration: none; font-size: .88rem; transition: .2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: white; background: rgba(139, 92, 246, .14); outline: none; }
.nav-link-emoji, .action-emoji { display: inline-grid; place-items: center; flex: 0 0 auto; line-height: 1; }
.nav-link-emoji { width: 1.15em; font-size: 1.05em; filter: drop-shadow(0 0 7px rgba(6, 182, 212, .24)); }
.nav-links a:hover .nav-link-emoji, .nav-links a:focus-visible .nav-link-emoji { transform: scale(1.12); }
.language-picker {
  min-width: 116px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; outline: none;
  background: #101016; color: white; cursor: pointer;
}
.menu-button { display: none; border: 0; background: transparent; color: white; font-size: 1.7rem; cursor: pointer; }
.nav-backdrop { display: none; }

/* =========================== COMMON UI ========================= */
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: 106px clamp(20px, 6vw, 76px); max-width: 1500px; margin: 0 auto; }
.section-heading { margin-bottom: 16px; text-align: center; font-size: clamp(1.9rem, 4vw, 2.55rem); }
.section-lead { max-width: 740px; margin: 0 auto 42px; color: var(--muted); line-height: 1.8; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.card {
  padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); backdrop-filter: blur(12px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-7px); border-color: rgba(139, 92, 246, .75); box-shadow: 0 15px 32px rgba(139, 92, 246, .15); }
.card h3 { margin-bottom: 10px; color: #c4b5fd; }
.card p { color: #c2c7d0; line-height: 1.7; }
.project-card { display: flex; flex-direction: column; }
.project-card > p { flex: initial; }
.project-preview { min-height: 178px; margin: -26px -26px 21px; padding: 18px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(6, 182, 212, .08)); }
.preview-services { background: linear-gradient(135deg, rgba(6, 182, 212, .17), rgba(139, 92, 246, .08)); }
.preview-ultron { background: radial-gradient(circle at 50% 0, rgba(6, 182, 212, .23), transparent 52%), linear-gradient(135deg, rgba(139, 92, 246, .2), rgba(2, 2, 2, .2)); }
.preview-window { width: min(100%, 280px); overflow: hidden; border: 1px solid rgba(196, 181, 253, .42); border-radius: 12px; background: #080811; box-shadow: 0 16px 30px rgba(0, 0, 0, .32), 0 0 28px rgba(139, 92, 246, .14); }
.preview-chrome { display: flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: #10101a; }
.preview-chrome span { width: 6px; height: 6px; border-radius: 50%; background: #fb7185; }
.preview-chrome span:nth-child(2) { background: #fbbf24; }
.preview-chrome span:nth-child(3) { background: #34d399; }
.preview-portfolio-nav { display: flex; align-items: center; gap: 9px; padding: 9px 12px; }
.preview-portfolio-nav i { width: 24px; height: 7px; border-radius: 999px; background: var(--gradient); }
.preview-portfolio-nav b { width: 17px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.preview-portfolio-nav b:first-of-type { margin-left: auto; }
.preview-portfolio-content { min-height: 107px; padding: 12px 16px 17px; background: radial-gradient(circle at 85% 20%, rgba(6, 182, 212, .35), transparent 30%); }
.preview-portfolio-content span, .preview-portfolio-content strong, .preview-portfolio-content em, .preview-portfolio-content small { display: block; border-radius: 999px; }
.preview-portfolio-content span { width: 40%; height: 6px; margin-bottom: 12px; background: rgba(255, 255, 255, .4); }
.preview-portfolio-content strong { width: 78%; height: 14px; margin-bottom: 8px; background: linear-gradient(90deg, #c4b5fd, #a5f3fc); }
.preview-portfolio-content em { width: 60%; height: 7px; margin-bottom: 16px; background: rgba(255, 255, 255, .22); }
.preview-portfolio-content small { width: 64px; height: 17px; background: var(--gradient); }
.preview-services-title { display: flex; align-items: center; gap: 9px; padding: 14px 15px 11px; }
.preview-services-title i { width: 23px; height: 23px; border-radius: 8px; background: var(--gradient); }
.preview-services-title b { width: 57%; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .5); }
.preview-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 15px 16px; }
.preview-services-grid span { display: grid; min-height: 34px; place-items: center; border: 1px solid rgba(6, 182, 212, .28); border-radius: 8px; background: rgba(6, 182, 212, .08); color: #a5f3fc; font-size: .95rem; }
.preview-ultron-header { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.preview-ultron-header i { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: var(--gradient); color: white; font-style: normal; font-size: .78rem; }
.preview-ultron-header b { color: #d8d5ff; font-size: .67rem; letter-spacing: .11em; }
.preview-ultron-header span { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px rgba(52, 211, 153, .8); }
.preview-chat-lines { display: grid; gap: 9px; padding: 13px; }
.preview-chat-lines span { height: 7px; border-radius: 999px; background: rgba(196, 181, 253, .28); }
.preview-chat-lines span:nth-child(2) { width: 76%; justify-self: end; background: rgba(6, 182, 212, .24); }
.preview-chat-lines span:nth-child(3) { width: 62%; }
.preview-chat-lines span:nth-child(4) { width: 83%; justify-self: end; background: rgba(6, 182, 212, .24); }
.preview-chat-input { display: flex; align-items: center; gap: 8px; padding: 9px 13px 13px; }
.preview-chat-input i { flex: 1; height: 22px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 7px; }
.preview-chat-input b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: var(--gradient); font-size: .72rem; }
.project-tag { display: inline-flex; align-self: flex-start; margin-bottom: 14px; padding: 5px 10px; border: 1px solid rgba(6, 182, 212, .5); border-radius: 999px; background: rgba(6, 182, 212, .09); color: #a5f3fc; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.project-built-label { margin: 19px 0 5px; color: #e9d5ff; font-size: .79rem; letter-spacing: .05em; text-transform: uppercase; }
.project-highlight { flex: 1 !important; color: #aeb5c4 !important; font-size: .9rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.project-tech span { padding: 5px 9px; border: 1px solid rgba(196, 181, 253, .28); border-radius: 999px; background: rgba(139, 92, 246, .08); color: #ddd6fe; font-size: .72rem; font-weight: 700; }
.project-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.project-action { flex: 1 1 124px; min-width: 0; padding: 10px 13px; font-size: .86rem; }
.service-tag { display: inline-block; margin-bottom: 14px; padding: 5px 11px; border: 1px solid rgba(139, 92, 246, .6); border-radius: 999px; color: #c4b5fd; background: rgba(139, 92, 246, .12); font-size: .75rem; font-weight: 700; }
.button, .tool-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px; border: 0;
  border-radius: 11px; background: var(--gradient); color: white; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s;
}
.button:hover, .tool-button:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(139, 92, 246, .32); }
.button:focus-visible, .tool-button:focus-visible, .icon-button:focus-visible { outline: 3px solid rgba(6, 182, 212, .7); outline-offset: 3px; }
.button-secondary { background: transparent; border: 1px solid rgba(6, 182, 212, .7); color: #a5f3fc; }
.button-danger { background: linear-gradient(100deg, #e11d48, #fb7185); }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; margin-top: 30px; }
.hidden-on-load { opacity: 0; transform: translateY(28px); transition: .65s ease; }
.hidden-on-load.show { opacity: 1; transform: translateY(0); }
.status-note { min-height: 24px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.status-note.error { color: #fda4af; }
.status-note.success { color: #6ee7b7; }

/* ====================== COMMAND CENTER EXPERIENCE ====================== */
.command-loader { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 42%, rgba(6, 182, 212, .15), transparent 34%), rgba(2, 2, 5, .96); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .42s ease, visibility .42s ease; }
html.command-loader-active .command-loader { opacity: 1; visibility: visible; pointer-events: auto; }
.command-loader.is-complete { opacity: 0; visibility: hidden; pointer-events: none; }
.command-loader-panel { position: relative; width: min(100%, 560px); overflow: hidden; padding: clamp(27px, 6vw, 48px); border: 1px solid rgba(6, 182, 212, .42); border-radius: 22px; background: linear-gradient(145deg, rgba(13, 18, 31, .97), rgba(7, 7, 13, .97)); box-shadow: 0 0 0 1px rgba(139, 92, 246, .15), 0 24px 80px rgba(0, 0, 0, .56), inset 0 1px rgba(255, 255, 255, .05); }
.command-loader-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 24%, rgba(6, 182, 212, .12) 45%, transparent 58%); transform: translateX(-125%); animation: command-scan 1.45s ease-in-out infinite; }
.command-loader-kicker, .case-study-kicker { color: #67e8f9; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.command-loader-title { display: flex; align-items: center; gap: 13px; margin-top: 17px; color: #e9e6ff; font-size: clamp(1rem, 3vw, 1.32rem); letter-spacing: .07em; }
.command-loader-orb { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(196, 181, 253, .6); border-radius: 13px; background: var(--gradient); box-shadow: 0 0 25px rgba(139, 92, 246, .52); animation: command-orb 1.8s ease-in-out infinite; }
.command-loader-copy { max-width: 390px; margin-top: 17px; color: #b9c1cf; line-height: 1.65; }
.command-loader-lines { display: grid; gap: 9px; margin-top: 30px; }
.command-loader-lines span { display: block; height: 7px; border-radius: 999px; background: rgba(196, 181, 253, .18); overflow: hidden; }
.command-loader-lines span::after { content: ""; display: block; width: 43%; height: 100%; border-radius: inherit; background: var(--gradient); box-shadow: 0 0 14px rgba(6, 182, 212, .75); animation: command-line 1.45s ease-in-out infinite; }
.command-loader-lines span:nth-child(2)::after { width: 64%; animation-delay: .14s; }
.command-loader-lines span:nth-child(3)::after { width: 31%; animation-delay: .28s; }
.command-loader-progress { height: 3px; margin-top: 30px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .11); }
.command-loader-progress span { display: block; width: 70%; height: 100%; border-radius: inherit; background: var(--gradient); transform-origin: left; animation: command-progress .85s ease-out forwards; }
.command-center-strip { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 25px; padding: 10px 13px; border: 1px solid rgba(6, 182, 212, .28); border-radius: 12px; background: rgba(6, 182, 212, .06); color: #9ea8b8; font-size: .72rem; letter-spacing: .06em; }
.command-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 12px rgba(251, 191, 36, .75); }
.command-center-strip.is-online .command-status-dot { background: var(--success); box-shadow: 0 0 12px rgba(52, 211, 153, .82); animation: command-status-pulse 1.7s ease-in-out infinite; }
.command-center-strip.is-offline .command-status-dot { background: var(--danger); box-shadow: 0 0 12px rgba(251, 113, 133, .82); }
.command-status-label { color: #d1d5db; font-weight: 800; }
.command-center-strip strong { color: #d8d5ff; font-size: .73rem; }
.command-status-meta { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .15); color: #a5f3fc; }
@keyframes command-scan { 55%, 100% { transform: translateX(125%); } }
@keyframes command-orb { 50% { transform: translateY(-3px) rotate(6deg); box-shadow: 0 0 34px rgba(6, 182, 212, .68); } }
@keyframes command-line { 50% { transform: translateX(120%); opacity: .55; } }
@keyframes command-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes command-status-pulse { 50% { transform: scale(.68); opacity: .45; } }

/* ========================== CASE STUDIES ========================== */
.case-study-dialog { width: min(760px, calc(100% - 28px)); max-height: min(800px, calc(100dvh - 28px)); margin: auto; padding: 0; overflow: auto; border: 1px solid rgba(139, 92, 246, .48); border-radius: 22px; background: #090a12; color: var(--text); box-shadow: 0 25px 90px rgba(0, 0, 0, .75); }
.case-study-dialog::backdrop { background: rgba(1, 2, 8, .78); backdrop-filter: blur(8px); }
.case-study-shell { position: relative; padding: clamp(26px, 6vw, 48px); background: radial-gradient(circle at 100% 0, rgba(6, 182, 212, .13), transparent 32%), linear-gradient(145deg, rgba(139, 92, 246, .1), transparent 36%); }
.case-study-close { position: absolute; top: 16px; right: 16px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .06); color: white; cursor: pointer; font-size: 1.4rem; transition: .2s; }
.case-study-close:hover, .case-study-close:focus-visible { border-color: var(--cyan); background: rgba(6, 182, 212, .13); outline: none; transform: rotate(90deg); }
.case-study-shell h2 { max-width: 86%; margin-top: 13px; color: #e8e4ff; font-size: clamp(1.8rem, 5vw, 2.7rem); }
.case-study-intro { max-width: 650px; margin-top: 13px; color: #c1c8d4; font-size: 1.02rem; line-height: 1.75; }
.case-study-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 30px; }
.case-study-grid section { min-height: 150px; padding: 19px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 15px; background: rgba(255, 255, 255, .035); }
.case-study-grid h3, .case-study-section-title { margin-bottom: 9px; color: #c4b5fd; font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
.case-study-grid p { color: #bfc7d4; line-height: 1.68; }
.case-study-section-title { margin-top: 28px; }
.case-study-highlights { display: grid; gap: 10px; list-style: none; }
.case-study-highlights li { position: relative; padding: 12px 13px 12px 34px; border: 1px solid rgba(6, 182, 212, .18); border-radius: 11px; background: rgba(6, 182, 212, .045); color: #c7d0dc; line-height: 1.55; }
.case-study-highlights li::before { content: "✦"; position: absolute; left: 13px; color: #67e8f9; }
.case-study-tech { margin-top: 22px; }
.case-study-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.case-study-actions .button { flex: 1 1 180px; }

/* ======================== PRIVATE DASHBOARD ======================== */
.dashboard-page { min-height: 100svh; padding: 30px 20px 56px; background: radial-gradient(circle at 82% 0, rgba(139, 92, 246, .18), transparent 28%), radial-gradient(circle at 7% 35%, rgba(6, 182, 212, .13), transparent 24%), var(--bg); }
.dashboard-shell { width: min(1120px, 100%); margin: 0 auto; }
.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 0 30px; }
.dashboard-back { color: #a5f3fc; font-size: .88rem; text-decoration: none; }
.dashboard-back:hover { color: white; }
.dashboard-header h1 { margin-top: 10px; font-size: clamp(2rem, 5vw, 3.45rem); }
.dashboard-header p { max-width: 620px; margin-top: 11px; color: var(--muted); line-height: 1.7; }
.dashboard-lock { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid rgba(251, 191, 36, .34); border-radius: 999px; background: rgba(251, 191, 36, .08); color: #fde68a; font-size: .76rem; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.dashboard-access { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; max-width: 720px; padding: 18px; border: 1px solid rgba(139, 92, 246, .36); border-radius: 17px; background: rgba(9, 10, 18, .8); box-shadow: 0 20px 50px rgba(0, 0, 0, .22); }
.dashboard-access .form-field { margin: 0; }
.dashboard-status { margin: 11px 2px 0; }
.dashboard-panel { margin-top: 28px; }
.dashboard-panel[hidden] { display: none; }
.dashboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.dashboard-toolbar p { color: var(--muted); font-size: .88rem; }
.dashboard-toolbar strong { color: #a5f3fc; }
.dashboard-lock-button { min-height: 40px; padding: 9px 13px; font-size: .82rem; }
.dashboard-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.dashboard-metric { min-height: 144px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025)); }
.dashboard-metric-label { color: #a5f3fc; font-size: .75rem; font-weight: 800; letter-spacing: .09em; }
.dashboard-metric strong { display: block; margin-top: 16px; color: #f2f1ff; font-size: clamp(2rem, 5vw, 3.1rem); }
.dashboard-metric small { display: block; margin-top: 8px; color: var(--muted); }
.dashboard-data-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 17px; margin-top: 17px; }
.dashboard-data-card { padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255, 255, 255, .04); }
.dashboard-data-card h2 { color: #e1ddff; font-size: 1.05rem; }
.dashboard-list { display: grid; gap: 12px; margin-top: 19px; list-style: none; }
.dashboard-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.dashboard-list-label { overflow: hidden; color: #c8cfdb; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-list-value { color: #a5f3fc; font-weight: 800; }
.dashboard-bar { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.dashboard-bar span { display: block; height: 100%; border-radius: inherit; background: var(--gradient); }
.dashboard-empty { margin-top: 19px; color: var(--muted); line-height: 1.65; }

/* ============================ HOME PAGE ======================== */
.hero { min-height: 100svh; display: grid; place-items: center; padding: 112px 20px 58px; }
.hero-inner { width: min(1180px, 100%); display: flex; align-items: center; justify-content: space-between; gap: clamp(32px, 7vw, 82px); }
.hero-text { flex: 1 1 520px; }
.hero-title { margin-bottom: 12px; font-size: clamp(2.65rem, 6vw, 5.35rem); line-height: 1.04; }
.typing { min-height: 1.8em; color: #c4b5fd; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; }
.hero-copy { max-width: 700px; margin-top: 18px; color: var(--muted); line-height: 1.9; }
.hero-photo-frame { position: relative; flex: 0 1 330px; width: min(330px, 82vw); animation: float 5s ease-in-out infinite; }
.hero-photo-glow { position: absolute; inset: -18px; z-index: -1; border-radius: 32px; background: var(--gradient); opacity: .3; filter: blur(30px); }
/* object-fit: contain is the mobile portrait fix: no part of profile.jpg is cropped. */
.hero-profile-img { display: block; width: 100%; max-height: min(68svh, 500px); border: 2px solid rgba(139, 92, 246, .65); border-radius: 25px; object-fit: contain; object-position: center; background: #08080b; box-shadow: 0 25px 60px rgba(0, 0, 0, .62); }
.hero-photo-tag { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); padding: 6px 17px; border: 1px solid var(--purple); border-radius: 999px; background: #08080b; color: #c4b5fd; font-size: .75rem; white-space: nowrap; }
@keyframes float { 50% { transform: translateY(-13px); } }
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr);
  gap: 22px;
  align-items: stretch;
}

.about-layout > .card {
  min-width: 0;
}

.live-status-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.live-status-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, .55);
  box-shadow: 0 15px 32px rgba(52, 211, 153, .10);
}

.live-status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.live-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 12px rgba(251, 113, 133, .75);
  animation: live-pulse 1.8s ease-in-out infinite;
}

.live-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

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

.live-status-label {
  color: var(--muted);
  font-size: .88rem;
}

.live-status-row strong {
  color: #ffffff;
  text-align: right;
  font-size: .92rem;
}

.live-status-footer {
  padding-bottom: 0;
}

.live-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success) !important;
}

@keyframes live-pulse {
  50% {
    opacity: .45;
    transform: scale(.78);
  }
}

@media (max-width: 850px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .live-status-card {
    padding: 22px;
  }

  .live-status-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .live-status-row strong {
    text-align: left;
  }
}
.about-flex { display: flex; align-items: center; gap: 36px; }
.about-photo-wrap { flex: 0 0 180px; }
.about-profile-img { display: block; width: 100%; border: 2px solid rgba(139, 92, 246, .5); border-radius: 18px; object-fit: contain; background: #08080b; }
.about-text { color: #c2c7d0; line-height: 1.9; }

/* ============================================================
   COMMAND CENTER SKILLS HUD
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.hud-card {
  position: relative;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  overflow: hidden;
}

.hud-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.2),
              inset 0 0 15px rgba(0, 240, 255, 0.05);
}

/* Corner HUD accents */
.hud-card-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: rgba(0, 240, 255, 0.5);
  pointer-events: none;
}
.hud-card-corner.top-left {
  top: 0;
  left: 0;
  border-top: 2px solid #00f0ff;
  border-left: 2px solid #00f0ff;
}
.hud-card-corner.top-right {
  top: 0;
  right: 0;
  border-top: 2px solid #00f0ff;
  border-right: 2px solid #00f0ff;
}

/* Header & Titles */
.hud-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.hud-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid currentColor;
  flex-shrink: 0;
}

.hud-icon-wrap.neon-cyan { color: #00f0ff; box-shadow: 0 0 12px rgba(0, 240, 255, 0.25); }
.hud-icon-wrap.neon-emerald { color: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.25); }
.hud-icon-wrap.neon-purple { color: #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.25); }
.hud-icon-wrap.neon-amber { color: #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.25); }

.hud-category-code {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #64748b;
  display: block;
  text-transform: uppercase;
}

.skill-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.skill-group-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Badges list */
.skill-badge-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.skill-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.skill-badge:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateX(4px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
}

.neon-badge-cyan .badge-dot { background: #00f0ff; box-shadow: 0 0 6px #00f0ff; }
.neon-badge-emerald .badge-dot { background: #10b981; box-shadow: 0 0 6px #10b981; }
.neon-badge-purple .badge-dot { background: #a855f7; box-shadow: 0 0 6px #a855f7; }
.neon-badge-amber .badge-dot { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }

.badge-name {
  color: #e2e8f0;
  font-weight: 500;
  margin-right: auto;
}

.badge-meta {
  font-size: 0.72rem;
  color: #64748b;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Learning card active pulse styling */
.learning-card {
  border-color: rgba(245, 158, 11, 0.25);
}
.learning-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.25);
}
.pulse-amber {
  animation: amberPulse 2s infinite ease-in-out;
}
@keyframes amberPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Section header styling */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.cyber-badge-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.05);
  margin-bottom: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.cyber-mono {
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-top: 0.75rem;
  line-height: 1.5;
}

.pulse-text {
  animation: textPulse 2s infinite ease-in-out;
}

@keyframes textPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .hud-card {
    padding: 1.2rem;
  }
}
.timeline { position: relative; max-width: 940px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; border-radius: 10px; background: var(--gradient); }
.timeline-item { position: relative; width: 50%; padding: 10px 38px; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::after { content: ""; position: absolute; top: 30px; width: 17px; height: 17px; border: 4px solid var(--cyan); border-radius: 50%; background: var(--purple); box-shadow: 0 0 18px rgba(139, 92, 246, .8); }
.timeline-item:nth-child(odd)::after { right: -11px; }
.timeline-item:nth-child(even)::after { left: -10px; }
.contact-cards { margin-bottom: 24px; }
.contact-card { display: block; text-align: center; text-decoration: none; }
.contact-availability { max-width: 980px; margin: 0 auto 26px; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(52, 211, 153, .4); border-radius: 17px; background: linear-gradient(110deg, rgba(52, 211, 153, .1), rgba(6, 182, 212, .07)); box-shadow: 0 14px 30px rgba(52, 211, 153, .06); }
.contact-availability-copy { display: flex; align-items: center; gap: 12px; }
.availability-dot { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; background: var(--success); box-shadow: 0 0 14px rgba(52, 211, 153, .85); animation: availability-pulse 1.8s ease-in-out infinite; }
.contact-availability strong { color: #d1fae5; }
.contact-availability p { margin-top: 3px; color: #b7c7c4; font-size: .88rem; line-height: 1.45; }
.contact-whatsapp { flex: 0 0 auto; background: linear-gradient(100deg, #16a34a, #25d366); }
@keyframes availability-pulse { 50% { opacity: .45; transform: scale(.74); } }
.contact-form { max-width: 720px; margin: 28px auto 0; }
.contact-form-status { margin: 10px 2px 0; text-align: center; }
.contact-form button:disabled { cursor: wait; opacity: .72; transform: none; }
.form-field { width: 100%; margin: 8px 0; padding: 14px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: #09090d; color: white; }
.form-field:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139, 92, 246, .14); }
.form-field textarea { resize: vertical; }
.assistant { max-width: 900px; margin: 0 auto; overflow: hidden; }
.assistant-header { display: flex; align-items: center; gap: 13px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.assistant-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--gradient); font-size: 1.25rem; }
.assistant-header p { color: var(--muted); font-size: .85rem; }
.assistant-chat { height: 330px; overflow-y: auto; padding: 22px; }
.chat-message { display: flex; gap: 10px; margin-bottom: 14px; }
.chat-message.user { flex-direction: row-reverse; }
.chat-avatar { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 9px; background: var(--gradient); }
.chat-bubble { max-width: 76%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); color: #d8dbe4; line-height: 1.55; white-space: pre-wrap; }
.chat-message.user .chat-bubble { background: rgba(139, 92, 246, .14); }
.assistant-form { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }
.assistant-form input { flex: 1; min-width: 0; }

/* =========================== SKILLS LAB =========================== */
.skills-lab-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; max-width: 1180px; margin: 0 auto 23px; }
.skills-lab-heading > div:first-child { min-width: 0; }
.skills-lab-heading .section-heading { margin-bottom: 10px; }
.skills-lab-heading p:not(.lab-kicker) { max-width: 720px; color: var(--muted); line-height: 1.72; }
.lab-kicker { color: #67e8f9; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.lab-score-card { display: grid; min-width: 176px; padding: 15px 17px; border: 1px solid rgba(6, 182, 212, .4); border-radius: 15px; background: linear-gradient(145deg, rgba(6, 182, 212, .12), rgba(139, 92, 246, .1)); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 14px 30px rgba(6,182,212,.06); }
.lab-score-card > span { color: #a5f3fc; font-size: .68rem; font-weight: 800; letter-spacing: .11em; }
.lab-score-card strong { margin-top: 3px; color: #f5f3ff; font-family: ui-monospace, "Cascadia Code", monospace; font-size: 2rem; line-height: 1; }
.lab-score-card strong small { color: #8c96a8; font-size: 1rem; }
.lab-score-card em { margin-top: 7px; color: #c4b5fd; font-size: .79rem; font-style: normal; }
.skills-lab-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 18px; max-width: 1180px; margin: 0 auto; }
.skill-radar-card, .lab-terminal-card { min-height: 395px; }
.lab-card-header { display: flex; align-items: center; gap: 9px; color: #e9e6ff; font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.lab-node { width: 9px; height: 9px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 14px rgba(34,211,238,.9); animation: lab-node-pulse 1.8s ease-in-out infinite; }
.skill-radar-wrap { display: grid; place-items: center; min-height: 260px; margin: 6px 0 0; }
.skill-radar { width: min(100%, 330px); overflow: visible; }
.radar-grid polygon, .radar-grid line { fill: rgba(6,182,212,.025); stroke: rgba(165,243,252,.2); stroke-width: 1.2; }
.radar-signal { fill: rgba(139,92,246,.28); stroke: #67e8f9; stroke-width: 2; filter: drop-shadow(0 0 8px rgba(6,182,212,.45)); transform-origin: 160px 145px; animation: radar-breathe 3.4s ease-in-out infinite; }
.radar-points circle { fill: #e9d5ff; stroke: #22d3ee; stroke-width: 2; filter: drop-shadow(0 0 5px rgba(34,211,238,.8)); }
.radar-labels { fill: #cbd5e1; font-family: "Space Grotesk", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .02em; text-anchor: middle; }
.radar-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; margin-top: 7px; list-style: none; }
.radar-legend li { display: flex; align-items: center; gap: 7px; min-width: 0; color: #aeb7c6; font-size: .78rem; }
.radar-legend li span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 9px rgba(6,182,212,.55); }
.radar-legend strong { margin-left: auto; color: #e9e6ff; }
.lab-terminal-card { display: flex; flex-direction: column; }
.lab-terminal-status { margin-left: auto; color: #fcd34d; font-size: .66rem; }
.lab-terminal-status.is-active { color: #6ee7b7; }
.lab-terminal { min-height: 238px; flex: 1; margin: 19px 0 15px; padding: 17px; overflow: auto; border: 1px solid rgba(6,182,212,.27); border-radius: 13px; background: #05060a; box-shadow: inset 0 0 34px rgba(6,182,212,.04); color: #d8d5ff; font-family: ui-monospace, "Cascadia Code", monospace; font-size: .81rem; line-height: 1.72; }
.lab-terminal p + p { margin-top: 7px; }
.lab-terminal p span { color: #67e8f9; }
.lab-terminal .terminal-muted { color: #8591a4; }
.lab-terminal .terminal-success { color: #6ee7b7; }
.lab-terminal .terminal-error { color: #fda4af; }
.lab-reset { align-self: flex-start; min-height: 39px; padding: 8px 12px; font-size: .8rem; }
.lab-challenge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: 18px auto 0; }
.lab-challenge { position: relative; min-width: 0; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.lab-challenge::after { content: ""; position: absolute; right: -28px; bottom: -44px; width: 130px; height: 130px; border: 1px solid rgba(6,182,212,.16); border-radius: 50%; pointer-events: none; }
.lab-challenge.is-complete { border-color: rgba(52,211,153,.62); box-shadow: 0 16px 34px rgba(52,211,153,.08); }
.lab-challenge.is-wrong { animation: lab-shake .32s linear; }
.lab-challenge-number { position: absolute; top: 17px; right: 20px; color: rgba(196,181,253,.45); font-family: ui-monospace, "Cascadia Code", monospace; font-size: .93rem; font-weight: 800; }
.lab-challenge h3 { margin-top: 12px; color: #f1efff; font-size: 1.1rem; }
.lab-challenge p { margin-top: 9px; color: var(--muted); line-height: 1.7; font-size: .88rem; }
.lab-challenge p code, .lab-answer code { color: #a5f3fc; font-family: ui-monospace, "Cascadia Code", monospace; }
.lab-answer-list { display: grid; gap: 9px; margin-top: 19px; }
.lab-answer { width: 100%; min-width: 0; padding: 10px 11px; overflow: hidden; border: 1px solid rgba(196,181,253,.2); border-radius: 9px; background: rgba(255,255,255,.035); color: #d8d5ff; cursor: pointer; text-align: left; text-overflow: ellipsis; transition: border-color .18s, background .18s, transform .18s; }
.lab-answer:hover:not(:disabled) { border-color: rgba(6,182,212,.75); background: rgba(6,182,212,.1); transform: translateX(3px); }
.lab-answer:disabled { cursor: default; opacity: .74; }
.lab-answer.is-correct { border-color: rgba(52,211,153,.85); background: rgba(52,211,153,.13); }
.lab-answer.is-incorrect { border-color: rgba(251,113,133,.7); background: rgba(251,113,133,.1); }
.lab-feedback { min-height: 1.5em; margin-top: 12px !important; color: #a5f3fc !important; font-size: .8rem !important; font-weight: 700; }
.lab-feedback.success { color: #6ee7b7 !important; }
.lab-feedback.error { color: #fda4af !important; }
@keyframes lab-node-pulse { 50% { opacity: .4; transform: scale(.72); } }
@keyframes radar-breathe { 50% { opacity: .65; transform: scale(.96); } }
@keyframes lab-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* =========================== ULTRON VOICE ========================== */
.voice-console { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 17px; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, rgba(139,92,246,.1), rgba(6,182,212,.075)); }
.voice-console-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.voice-console-copy strong { color: #ddd6fe; font-size: .74rem; letter-spacing: .09em; }
.voice-console-copy p { margin-top: 3px; color: #9ca7b9; font-size: .78rem; line-height: 1.35; }
.voice-pulse { width: 10px; height: 10px; flex: 0 0 10px; border: 2px solid #67e8f9; border-radius: 50%; box-shadow: 0 0 12px rgba(6,182,212,.65); }
.voice-console.is-listening .voice-pulse { background: #fb7185; border-color: #fecdd3; box-shadow: 0 0 0 7px rgba(251,113,133,.14), 0 0 16px rgba(251,113,133,.8); animation: voice-pulse 1.1s ease-in-out infinite; }
.voice-console-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.voice-button { min-height: 38px; padding: 8px 11px; font-size: .76rem; white-space: nowrap; }
.voice-button[aria-pressed="true"] { border-color: rgba(52,211,153,.78); background: rgba(52,211,153,.14); color: #d1fae5; }
.voice-button:disabled { cursor: not-allowed; opacity: .56; }
.voice-stop-button { display: grid; width: 38px; min-height: 38px; place-items: center; border: 1px solid rgba(251,113,133,.46); border-radius: 10px; background: rgba(251,113,133,.08); color: #fecdd3; cursor: pointer; }
.voice-stop-button:disabled { cursor: not-allowed; opacity: .4; }
@keyframes voice-pulse { 50% { transform: scale(.72); opacity: .55; } }
.lab-answer:focus-visible, .voice-stop-button:focus-visible { outline: 3px solid rgba(6,182,212,.7); outline-offset: 3px; }

.footer { padding: 38px 20px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); line-height: 1.7; }
.footer strong { color: #c4b5fd; }
.whatsapp-float, .back-to-top { position: fixed; bottom: 23px; display: grid; place-items: center; border-radius: 50%; color: white; text-decoration: none; z-index: 900; box-shadow: 0 0 20px rgba(139, 92, 246, .35); }
.whatsapp-float { right: 22px; width: 56px; height: 56px; background: #25d366; font-size: 1.45rem; }
.back-to-top { left: 22px; width: 47px; height: 47px; border: 0; background: var(--gradient); cursor: pointer; opacity: 0; pointer-events: none; transition: .25s; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* ========================== TOOLS PAGE ========================= */
.tools-page { padding-top: 76px; }
.tools-hero { padding: 70px 20px 42px; text-align: center; }
.tools-hero h1 { font-size: clamp(2.3rem, 6vw, 4.5rem); }
.tools-hero p { max-width: 720px; margin: 17px auto 0; color: var(--muted); line-height: 1.8; }
.tool-shortcuts { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 14px; max-width: 1180px; margin: 0 auto; padding: 0 20px 58px; }
.tool-shortcut { min-height: 123px; padding: 16px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: white; cursor: pointer; transition: .2s; }
.tool-shortcut:hover, .tool-shortcut.active { transform: translateY(-4px); border-color: var(--cyan); background: rgba(6, 182, 212, .09); }
.tool-shortcut-icon { display: block; margin-bottom: 8px; font-size: 1.55rem; }
.tool-shortcut span:last-child { font-size: .86rem; font-weight: 700; }
.tool-area { max-width: 960px; margin: 0 auto; padding: 0 20px 84px; }
.tool-panel { display: none; }
.tool-panel.active { display: block; animation: panel-in .35s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tool-panel > .card { padding: clamp(20px, 4vw, 34px); }
.tool-panel h2 { margin-bottom: 8px; color: #ddd6fe; font-size: clamp(1.45rem, 3vw, 2rem); }
.tool-help { margin-bottom: 24px; color: var(--muted); line-height: 1.7; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 24px 0; }
.metric { padding: 18px 12px; border: 1px solid var(--line); border-radius: 13px; background: #08080d; text-align: center; }
.metric small { display: block; color: var(--muted); }
.metric strong { display: block; margin-top: 5px; color: #c4b5fd; font-size: clamp(1.1rem, 3vw, 1.55rem); }
.speedometer-wrap { display: grid; place-items: center; max-width: 340px; margin: 0 auto; }
#speedometer { width: min(100%, 320px); height: auto; }
.tool-label { display: block; margin: 13px 0 7px; color: #d8d5ff; font-weight: 700; }
.tool-input, .tool-select { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #09090d; color: white; }
.tool-input:focus, .tool-select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139, 92, 246, .14); }
.qr-canvas-wrap { display: grid; min-height: 0; place-items: center; margin: 25px 0 13px; }
#qrCanvas { display: none; width: min(100%, 320px); height: auto; padding: 10px; border-radius: 12px; background: white; image-rendering: pixelated; }
.typing-sample { min-height: 98px; padding: 18px; border: 1px dashed rgba(6, 182, 212, .65); border-radius: 12px; background: rgba(6, 182, 212, .06); color: #e4e6eb; line-height: 1.8; }
.typing-input { min-height: 130px; resize: vertical; }
.inline-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.inline-controls > div { flex: 1 1 130px; }
.time-display { margin: 22px 0; color: #d8d5ff; font-family: ui-monospace, "Cascadia Code", monospace; font-size: clamp(2.5rem, 10vw, 5.5rem); font-weight: 700; letter-spacing: .04em; text-align: center; }
.lap-list { max-height: 200px; margin-top: 20px; overflow: auto; list-style-position: inside; color: var(--muted); line-height: 1.8; }
.calendar-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #11111a; cursor: pointer; }
.calendar-title { margin: 10px 0 16px; color: #ddd6fe; text-align: center; font-size: 1.35rem; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.calendar-weekdays span { padding: 8px 2px; color: #a5f3fc; font-size: .76rem; font-weight: 700; }
.calendar-day { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid transparent; border-radius: 10px; color: #dddfe5; }
.calendar-day.today { border-color: var(--cyan); background: rgba(6, 182, 212, .1); }
.calendar-day.birthday { border-color: var(--purple); background: linear-gradient(135deg, rgba(139, 92, 246, .5), rgba(6, 182, 212, .28)); color: white; font-weight: 800; box-shadow: 0 0 16px rgba(139, 92, 246, .35); }
.calendar-day.empty { visibility: hidden; }
.birthday-key { margin-top: 18px; color: #c4b5fd; text-align: center; font-size: .9rem; }
.top-back { position: fixed; top: 14px; right: clamp(14px, 3vw, 48px); z-index: 1002; min-height: 46px; padding: 10px 15px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(6, 182, 212, .6); border-radius: 10px; background: rgba(8, 8, 14, .95); color: #a5f3fc; font-weight: 700; cursor: pointer; backdrop-filter: blur(14px); }
.top-back:hover { background: rgba(6, 182, 212, .15); }
.offline-chip { display: inline-flex; gap: 7px; margin-top: 18px; padding: 7px 12px; border: 1px solid rgba(52, 211, 153, .35); border-radius: 999px; color: #86efac; background: rgba(52, 211, 153, .08); font-size: .82rem; }
.offline-chip.is-offline { border-color: rgba(251, 113, 133, .45); color: #fda4af; background: rgba(251, 113, 133, .08); }

/* ========================== RESPONSIVE ========================= */
@media (max-width: 1080px) {
  .menu-button { display: block; z-index: 1002; }
  .nav-links { position: fixed; top: 0; right: -310px; width: min(310px, 88vw); height: 100dvh; padding: 94px 20px 28px; flex-direction: column; align-items: stretch; gap: 5px; border-left: 1px solid var(--line); background: rgba(7, 7, 11, .99); transition: right .28s ease; }
  .nav-links.open { right: 0; }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .nav-links .language-picker { width: 100%; margin: 9px 0; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 998; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: .25s; }
  .nav-backdrop.open { display: block; opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .tool-shortcuts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .hero { padding-top: 105px; }
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-photo-frame { width: min(255px, 70vw); }
  .hero-profile-img { max-height: 55svh; }
  .hero-copy { margin-left: auto; margin-right: auto; }
  .about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr);
  gap: 22px;
  align-items: stretch;
}

.about-layout > .card {
  min-width: 0;
}

.live-status-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.live-status-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 211, 153, .55);
  box-shadow: 0 15px 32px rgba(52, 211, 153, .10);
}

.live-status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.live-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 12px rgba(251, 113, 133, .75);
  animation: live-pulse 1.8s ease-in-out infinite;
}

.live-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

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

.live-status-label {
  color: var(--muted);
  font-size: .88rem;
}

.live-status-row strong {
  color: #ffffff;
  text-align: right;
  font-size: .92rem;
}

.live-status-footer {
  padding-bottom: 0;
}

.live-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success) !important;
}

@keyframes live-pulse {
  50% {
    opacity: .45;
    transform: scale(.78);
  }
}

@media (max-width: 850px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .live-status-card {
    padding: 22px;
  }

  .live-status-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .live-status-row strong {
    text-align: left;
  }
}
.about-flex { flex-direction: column; text-align: center; }
  .timeline::before { left: 18px; }
  .timeline-item, .timeline-item:nth-child(even) { left: 0; width: 100%; padding: 8px 0 8px 49px; }
  .timeline-item:nth-child(odd)::after, .timeline-item:nth-child(even)::after { left: 9px; }
  .metric-grid { grid-template-columns: 1fr; }
  .tool-shortcuts { grid-template-columns: repeat(2, 1fr); }
  .assistant-chat { height: 300px; }
  .contact-availability { align-items: stretch; flex-direction: column; }
  .contact-whatsapp { width: 100%; }
  .command-center-strip { width: 100%; justify-content: center; }
  .command-status-meta { width: 100%; padding-left: 0; border-left: 0; text-align: center; }
  .case-study-grid, .dashboard-data-grid { grid-template-columns: 1fr; }
  .dashboard-header { flex-direction: column-reverse; }
  .dashboard-access { grid-template-columns: 1fr; }
  .dashboard-metric-grid { grid-template-columns: 1fr; }
  .dashboard-toolbar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) {
  .site-nav { height: 68px; padding: 10px 14px; }
  .nav-logo-img { width: 39px; height: 39px; }
  .brand-name { font-size: 1rem; }
  .hero { padding-top: 91px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .card { padding: 20px; }
  .assistant-form { flex-wrap: wrap; }
  .assistant-form .tool-button { width: 100%; }
  .button-row .button { width: 100%; }
  .project-actions .button { flex-basis: 100%; width: 100%; }
  .calendar-weekdays, .calendar-grid { gap: 3px; }
  .calendar-day { border-radius: 7px; font-size: .82rem; }
  .top-back { top: 10px; right: 10px; font-size: .82rem; }
}

/* ============================== GAMES ============================= */
.games-offered {
  width: min(1140px, calc(100% - 40px)); margin: 0 auto 58px; padding: clamp(22px, 4vw, 34px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid rgba(6, 182, 212, .4);
  border-radius: 20px; background: linear-gradient(120deg, rgba(139, 92, 246, .17), rgba(6, 182, 212, .11));
  box-shadow: 0 18px 48px rgba(6, 182, 212, .08);
}
.games-offered h2 { margin: 7px 0 10px; color: #f5f3ff; font-size: clamp(1.45rem, 3vw, 2.05rem); }
.games-offered p { max-width: 700px; color: var(--muted); line-height: 1.75; }
.games-offered-link { flex: 0 0 auto; white-space: nowrap; }
.games-kicker {
  display: inline-block; color: #a5f3fc; font-size: .72rem; font-weight: 800; letter-spacing: .13em;
}
.games-page .tools-hero { padding-bottom: 34px; }
.games-hero p { max-width: 780px; }
.games-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.games-legend span {
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .035);
  color: #d8d5ff; font-size: .82rem; font-weight: 700;
}
.games-grid {
  width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 8px 0 82px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px;
}
.game-card {
  position: relative; min-width: 0; padding: clamp(18px, 3vw, 28px); overflow: hidden; border: 1px solid var(--line);
  border-radius: 22px; background: linear-gradient(155deg, rgba(16, 12, 30, .9), rgba(5, 11, 20, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), 0 20px 42px rgba(0, 0, 0, .24);
}
.game-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background: radial-gradient(circle at 3% 3%, rgba(139, 92, 246, .18), transparent 32%), radial-gradient(circle at 97% 97%, rgba(6, 182, 212, .12), transparent 30%);
}
.game-card > * { position: relative; }
.game-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.game-card-heading h2 { margin: 6px 0 9px; color: #f5f3ff; font-size: clamp(1.5rem, 3vw, 2rem); }
.game-card-heading p { max-width: 420px; color: var(--muted); line-height: 1.65; }
.game-symbol {
  width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border: 1px solid rgba(6, 182, 212, .5);
  border-radius: 15px; background: rgba(6, 182, 212, .09); color: #a5f3fc; font-size: 1.6rem; box-shadow: 0 0 24px rgba(6, 182, 212, .13);
}
.game-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.game-stats > div { padding: 11px 8px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(1, 1, 5, .48); text-align: center; }
.game-stats span { display: block; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.game-stats strong { display: block; margin-top: 3px; color: #ddd6fe; font-family: ui-monospace, "Cascadia Code", monospace; font-size: 1.08rem; }
.game-canvas-shell { position: relative; width: min(100%, 480px); margin: 0 auto; overflow: hidden; border: 1px solid rgba(139, 92, 246, .42); border-radius: 17px; background: #03030a; box-shadow: 0 0 0 5px rgba(139, 92, 246, .05), 0 14px 34px rgba(0, 0, 0, .32); }
.maze-canvas-shell { width: min(100%, 532px); border-color: rgba(6, 182, 212, .42); }
.game-canvas-shell canvas { display: block; width: 100%; height: auto; outline: none; touch-action: none; }
.game-canvas-shell canvas:focus-visible { box-shadow: inset 0 0 0 3px #a5f3fc; }
.game-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 28px;
  background: rgba(2, 2, 7, .7); backdrop-filter: blur(4px); color: #f5f3ff; text-align: center; transition: opacity .2s, visibility .2s;
}
.game-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.game-overlay strong { color: #c4b5fd; font-size: 1.22rem; }
.game-overlay span { max-width: 270px; color: #d0d5df; line-height: 1.55; font-size: .9rem; }
.game-status { min-height: 24px; margin: 16px 0 3px; color: #a5f3fc; font-size: .88rem; text-align: center; }
.game-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.game-actions .tool-button { min-height: 40px; padding: 9px 13px; font-size: .86rem; }
.game-actions .tool-button:disabled { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }
.game-audio-button { min-height: 40px; padding: 8px 12px; border: 1px solid rgba(6, 182, 212, .45); border-radius: 10px; background: rgba(6, 182, 212, .06); color: #a5f3fc; font-size: .82rem; font-weight: 700; cursor: pointer; }
.game-audio-button[aria-pressed="true"] { border-color: rgba(52, 211, 153, .7); background: rgba(52, 211, 153, .13); color: #bbf7d0; }
.game-controls { width: 180px; margin: 23px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.direction-button { min-height: 43px; border: 1px solid rgba(196, 181, 253, .3); border-radius: 11px; background: rgba(139, 92, 246, .1); color: #ede9fe; font-size: 1.2rem; font-weight: 800; cursor: pointer; user-select: none; touch-action: manipulation; }
.direction-button:hover, .direction-button:active { border-color: var(--cyan); background: rgba(6, 182, 212, .2); transform: translateY(-1px); }
.direction-button:focus-visible, .game-audio-button:focus-visible { outline: 3px solid rgba(6, 182, 212, .7); outline-offset: 3px; }
.direction-up { grid-column: 2; grid-row: 1; }
.direction-left { grid-column: 1; grid-row: 2; }
.direction-down { grid-column: 2; grid-row: 2; }
.direction-right { grid-column: 3; grid-row: 2; }
.game-help { margin: 18px auto 0; max-width: 500px; color: var(--muted); font-size: .83rem; line-height: 1.65; text-align: center; }
.game-help strong { color: #d8d5ff; }

@media (max-width: 980px) {
  .games-grid { grid-template-columns: 1fr; max-width: 690px; }
}
@media (max-width: 620px) {
  .games-offered { align-items: stretch; flex-direction: column; width: min(100% - 28px, 1140px); margin-bottom: 42px; }
  .games-offered-link { width: 100%; }
  .games-grid { width: min(100% - 28px, 690px); gap: 18px; }
  .game-card { border-radius: 18px; }
  .game-actions .tool-button, .game-audio-button { flex: 1 1 42%; }
}
@media (max-width: 390px) {
  .game-card-heading { flex-direction: column-reverse; }
  .game-stats span { font-size: .62rem; }
  .game-stats strong { font-size: .98rem; }
}
@media (max-width: 820px) {
  .skills-lab-heading, .voice-console { align-items: flex-start; flex-direction: column; }
  .skills-lab-grid { grid-template-columns: 1fr; }
  .skill-radar-card, .lab-terminal-card { min-height: 0; }
  .voice-console-actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .lab-challenge-grid { grid-template-columns: 1fr; }
  .radar-legend { grid-template-columns: 1fr; }
  .voice-console-actions { width: 100%; }
  .voice-button { flex: 1 1 185px; }
}
@media (max-width: 420px) {
  .lab-score-card { width: 100%; }
  .voice-button { width: 100%; }
  .voice-stop-button { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
