/* ==========================================================================
   SHADOW HACKER THEME // HUMBLE TERMINAL PORTFOLIO (EXPANDED LAYOUT)
   Operative: Oleksii Besporochnyi // William & Mary CS
   ========================================================================== */

:root {
  /* Shadow Dark Palette */
  --bg-base: #090c10;
  --bg-surface: #0f141c;
  --bg-surface-hover: #151b26;
  --bg-subtle: #18202c;
  --bg-input: #0b0f16;
  
  /* Refined Accents */
  --accent-emerald: #10b981;
  --accent-emerald-dim: rgba(16, 185, 129, 0.12);
  --accent-cyan: #38bdf8;
  --accent-cyan-dim: rgba(56, 189, 248, 0.12);
  --accent-amber: #f59e0b;
  --accent-amber-dim: rgba(245, 158, 11, 0.14);
  --manjaro-green: #35bf5c;

  /* Subtle Borders */
  --border-subtle: #1e2635;
  --border-medium: #2a3447;
  --border-amber: rgba(245, 158, 11, 0.45);

  /* Typography Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Fonts */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Share Tech Mono', monospace;

  /* Transitions */
  --speed: 0.15s ease;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 15.5px;
}

body.shadow-body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.68;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

::selection {
  background: rgba(16, 185, 129, 0.3);
  color: #ffffff;
}

/* EXPANDED CONTAINERS (SPREAD ACROSS SCREEN) */
.shell-container {
  width: 100%;
  max-width: min(1500px, 95vw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.section-block {
  padding: clamp(54px, 7vw, 84px) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.section-block:last-of-type {
  border-bottom: none;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 30px;
}
.section-tag {
  color: var(--accent-emerald);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.section-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Typography Utilities */
.text-emerald { color: var(--accent-emerald); }
.text-cyan { color: var(--accent-cyan); }
.text-amber { color: var(--accent-amber); }
.text-muted { color: var(--text-muted); }

/* TOP NAV BAR */
.shadow-navbar {
  position: sticky;
  top: 0;
  background: rgba(9, 12, 16, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: min(1500px, 95vw);
  margin: 0 auto;
  gap: 16px;
}

/* NAV BRAND: SLEEK >oleksii (NO FLASHING STUFF) */
.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--accent-emerald);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: opacity var(--speed), transform var(--speed);
  flex-shrink: 0;
}
.nav-brand:hover {
  opacity: 0.85;
  transform: translateX(2px);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--speed);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a.award-link {
  color: var(--accent-amber);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Action Buttons */
.btn-stealth {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: all var(--speed);
}
.btn-stealth:hover {
  background: var(--bg-subtle);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-emerald {
  background: var(--accent-emerald-dim);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
}
.btn-emerald:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--accent-emerald);
  color: #ffffff;
}

.btn-amber {
  background: var(--accent-amber-dim);
  border: 1px solid var(--border-amber);
  color: var(--accent-amber);
}
.btn-amber:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--accent-amber);
  color: #ffffff;
}

/* HERO SECTION */
.hero-wrapper {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 22px;
  text-align: center;
}

.avatar-container {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
  background: var(--bg-base);
  position: relative;
  cursor: pointer;
  transition: border-color var(--speed);
}
.avatar-container:hover {
  border-color: var(--accent-emerald);
}
.avatar-container:hover .avatar-zoom-badge {
  opacity: 1;
}
.avatar-zoom-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(9, 12, 16, 0.88);
  border: 1px solid var(--border-medium);
  color: var(--accent-emerald);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 3px;
  opacity: 0.8;
  transition: opacity var(--speed);
  pointer-events: none;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.profile-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.profile-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}
.badge-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.contact-link {
  color: var(--accent-emerald);
  text-decoration: none;
  font-size: 0.8rem;
  word-break: break-all;
}
.contact-link:hover {
  text-decoration: underline;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hero Content Column */
.hero-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 14px;
}

.hero-subtitle-box {
  background: var(--bg-surface);
  border-left: 2px solid var(--accent-emerald);
  padding: 10px 16px;
  margin-bottom: 22px;
  border-radius: 0 4px 4px 0;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--accent-emerald);
  min-height: 46px;
  display: flex;
  align-items: center;
  word-break: break-word;
}
.cli-caret {
  animation: blinkCaret 1s infinite steps(1);
  color: var(--accent-emerald);
  font-weight: bold;
}
@keyframes blinkCaret {
  50% { opacity: 0; }
}

.hero-bio {
  font-size: clamp(0.92rem, 1.8vw, 1.02rem);
  color: var(--text-secondary);
  line-height: 1.76;
  margin-bottom: 14px;
}
.hero-bio strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Metric & Award Boxes */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 26px 0 30px 0;
}
.metric-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 16px 18px;
}
.metric-box.highlight-winner {
  border-color: var(--border-amber);
  background: rgba(245, 158, 11, 0.05);
}
.metric-val {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.metric-val.award {
  color: var(--accent-amber);
}
.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* HERO EDUCATION SUMMARY SNAPSHOT BOXES */
.hero-edu-summary {
  margin: 0 0 28px 0;
  padding: 16px 18px;
  background: rgba(18, 24, 34, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}
.hero-edu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.edu-summary-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
}
.edu-summary-link {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--speed);
}
.edu-summary-link:hover {
  color: var(--accent-emerald);
}
.hero-edu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.edu-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 12px 14px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color var(--speed), transform var(--speed);
}
.edu-summary-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}
.edu-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.edu-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.25;
}
.edu-card-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.35;
}
.edu-card-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: auto;
}

.hero-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* TIMELINE ENTRIES (EDUCATION & EXPERIENCE) */
.stealth-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.timeline-entry {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}
.timeline-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  padding-top: 2px;
}

.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timeline-role {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.timeline-org {
  font-size: 0.85rem;
  color: var(--accent-emerald);
}
.timeline-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* PROJECTS GRID (3-COLUMN SPREAD ACROSS PAGE) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.shadow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-top {
  margin-bottom: 14px;
}
.card-kicker {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.card-tags span {
  font-size: 0.72rem;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 3px;
}

/* PROJECT IMAGE PREVIEWS (SPACIOUS AND CLEAN) */
.project-img-preview {
  position: relative;
  width: 100%;
  height: 230px;
  border-radius: 6px;
  overflow: hidden;
  margin: 14px 0 8px 0;
  border: 1px solid var(--border-subtle);
  background: #000;
  cursor: pointer;
  transition: border-color var(--speed);
}
.project-img-preview:hover {
  border-color: var(--accent-emerald);
}
.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.3s ease;
}
.project-img-preview:hover .project-thumb-img {
  transform: scale(1.04);
}
.img-overlay-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(9, 12, 16, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.03em;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
  display: inline-block;
  animation: pulse-glow 2s infinite ease-in-out;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* AWARDS & HONORS GRID */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.award-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.award-card.featured-award {
  border: 2px solid var(--accent-amber);
  background: rgba(245, 158, 11, 0.04);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.12);
}

.award-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}
.award-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.award-kicker {
  font-size: 0.78rem;
  color: var(--accent-amber);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.award-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.award-event {
  font-size: 0.85rem;
  color: var(--accent-emerald);
}

.award-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag-pill {
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.tag-amber {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.4);
  font-weight: 700;
}
.tag-cyan {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.4);
  font-weight: 700;
}
.tag-emerald {
  background: var(--accent-emerald-dim);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.4);
  font-weight: 700;
}
.award-desc {
  font-size: 0.94rem;
  color: var(--text-primary);
  line-height: 1.72;
}

/* SKILLS LIST GRID */
.skills-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.skill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 22px;
}
.skill-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.skill-detail {
  font-size: 0.82rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.skill-notes {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.62;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.channel-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 18px 20px;
}
.channel-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.channel-addr {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 8px;
  word-break: break-all;
}

/* Contact Form */
.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--speed);
}
.form-input:focus {
  border-color: var(--accent-emerald);
}
.form-feedback {
  font-size: 0.82rem;
  padding: 10px;
  border-radius: 4px;
  display: none;
}
.form-feedback.success {
  display: block;
  background: var(--accent-emerald-dim);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

/* VISUAL GALLERY SECTION (PICTURES LAST AS REQUESTED) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.gallery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--speed);
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #06090e;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-card:hover .gallery-img {
  transform: scale(1.04);
}
.gallery-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(9, 12, 16, 0.92);
  border: 1px solid var(--border-subtle);
  color: var(--accent-emerald);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.gallery-info {
  padding: 14px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  flex: 1;
}
.gallery-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.gallery-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* FOOTER */
.shadow-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* CLI TERMINAL DRAWER */
.cli-drawer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 700px;
  max-width: calc(100vw - 32px);
  height: 440px;
  max-height: 80vh;
  z-index: 999;
  background: #0b0f17;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}
.cli-drawer[hidden] {
  display: none !important;
}

.cli-bar {
  background: #111722;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px 8px 0 0;
}
.cli-dots {
  display: flex;
  gap: 7px;
}
.cli-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
}
.cli-dot.red { background: #e06c75; }
.cli-dot.yellow { background: #e5c07b; }
.cli-dot.green { background: #98c379; }

.cli-bar-title {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.cli-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}
.cli-close:hover {
  color: var(--text-primary);
}

.cli-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  background: #080c12;
  color: var(--text-secondary);
  outline: none;
}
.cli-line {
  margin-bottom: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}
.cli-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0e141e;
  border-top: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: 0 0 8px 8px;
}
.cli-input-prompt {
  color: var(--accent-emerald);
  font-weight: 600;
  font-size: 0.85rem;
}
.cli-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  outline: none;
}

/* DIALOG MODALS & HIGH-QUALITY ZOOM */
.shadow-dialog {
  margin: auto;
  padding: 0;
  background: transparent;
  border: none;
  max-width: 900px;
  width: 94vw;
  max-height: 90vh;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}
.shadow-dialog[open] {
  opacity: 1;
  transform: translateY(0);

  @starting-style {
    opacity: 0;
    transform: translateY(10px);
  }
}
.shadow-dialog::backdrop {
  background-color: rgba(5, 8, 12, 0);
  backdrop-filter: blur(0px);
  transition:
    display 0.2s allow-discrete,
    overlay 0.2s allow-discrete,
    background-color 0.2s ease-out;
}
.shadow-dialog[open]::backdrop {
  background-color: rgba(5, 8, 12, 0.82);
  backdrop-filter: blur(6px);

  @starting-style {
    background-color: rgba(5, 8, 12, 0);
  }
}

.dialog-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #0d121a;
  border-bottom: 1px solid var(--border-subtle);
}
.dialog-head-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}
.dialog-content {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
}

.pdf-frame {
  width: 100%;
  height: 72vh;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  border-radius: 4px;
}

/* PHOTO MODAL & DEDICATED ZOOM ENGINE */
.photo-modal-box {
  max-width: min(1380px, 96vw);
  width: 100%;
  background: var(--bg-surface);
}
.photo-dialog-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #06090e;
}
.modal-img-container {
  width: 100%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 10px;
}
.modal-large-img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  cursor: zoom-in;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.modal-large-img.zoomed {
  max-width: none;
  max-height: none;
  transform: scale(1.6);
  cursor: zoom-out;
  margin: 120px 60px;
}
.photo-modal-caption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 780px;
  line-height: 1.55;
}

/* TOAST */
.toast-shelf {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast-item {
  background: #111722;
  border: 1px solid var(--border-medium);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 10px 16px;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* RESPONSIVE SCALING */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .hero-wrapper {
    grid-template-columns: 280px 1fr;
    gap: 32px;
  }
  .skills-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .awards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .profile-card {
    max-width: 360px;
    width: 100%;
  }
  .hero-content {
    width: 100%;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-edu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 540px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .skills-list-grid {
    grid-template-columns: 1fr;
  }
  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
  }
  .hero-edu-grid {
    grid-template-columns: 1fr;
  }
}
