/* ==========================================================================
   MUDIT SAJAL PORTFOLIO — BERMAWY.COM RETRO-EDITORIAL DESIGN SYSTEM
   ========================================================================== */

:root {
  --font-mono: 'Cousine', 'Courier New', monospace;
  --font-retro: 'Special Elite', cursive, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* BERMAWY SIGNATURE PALETTE */
  --bg-primary: #F9F9F9;
  --bg-secondary: #FFFFFF;
  --bg-ice: #E6F3FF;
  --bg-ice-hover: #D4EAFF;
  
  --color-blue: #345AAA;
  --color-blue-dark: #223e78;
  --color-blue-tint: rgba(52, 90, 170, 0.08);

  --text-main: #141414;
  --text-muted: #555555;
  --text-dim: #777777;

  --border-blue: #345AAA;
  --border-light: #BDBDBD;
  --border-subtle: #E0E0E0;

  --shadow-retro: 3px 3px 0px #345AAA;
  --shadow-retro-hover: 5px 5px 0px #345AAA;
  --shadow-card: 0 4px 20px rgba(52, 90, 170, 0.06);

  /* GAMEBOY PALETTE */
  --gb-shell: #D1D2D6;
  --gb-bezel: #76777A;
  --gb-bezel-inner: #4E5054;
  --gb-screen-bg: #8B956D;
  --gb-screen-dark: #2C3518;
  --gb-screen-text: #1B210F;
  --gb-screen-mid: #68734A;
  --gb-btn-magenta: #A21D47;
  --gb-btn-dark: #3A3A3C;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RETRO DARK MODE */
body.dark-mode {
  --bg-primary: #0C0F17;
  --bg-secondary: #141924;
  --bg-ice: #1B2844;
  --bg-ice-hover: #24355A;

  --color-blue: #5C8BF5;
  --color-blue-dark: #82A7FA;
  --color-blue-tint: rgba(92, 139, 245, 0.12);

  --text-main: #F3F4F6;
  --text-muted: #A3B3CC;
  --text-dim: #7E8DA6;

  --border-blue: #5C8BF5;
  --border-light: #334155;
  --border-subtle: #242D3D;

  --shadow-retro: 3px 3px 0px #5C8BF5;
  --shadow-retro-hover: 5px 5px 0px #5C8BF5;
}

/* GLOBAL RESETS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.body-retro {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-mono);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* CUSTOM SCROLLBAR (BERMAWY STYLE) */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-ice);
  border: 1px solid var(--border-blue);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-blue);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   NAVBAR (BLURS ON SCROLL)
   ========================================================================== */
.navbar-3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.navbar-3.is-scrolled {
  background: rgba(249, 249, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-blue);
}

body.dark-mode .navbar-3.is-scrolled {
  background: rgba(12, 15, 23, 0.88);
}

.navbar-container {
  width: 92%;
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.text-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-role {
  font-size: 10px;
  background: var(--bg-ice);
  color: var(--color-blue);
  border: 1px solid var(--border-blue);
  padding: 2px 6px;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-blue);
  padding: 6px 4px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
}

.navbar-link:hover {
  background-color: var(--bg-ice);
}

.navbar-link.highlight {
  background: var(--bg-ice);
  border: 1px solid var(--border-blue);
  padding: 4px 8px;
}

.navbar-link.highlight:hover {
  background: var(--color-blue);
  color: #FFFFFF;
}

.btn-link {
  background: none;
  border: none;
  font-family: inherit;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: var(--bg-ice);
  border: 1px solid var(--border-blue);
  color: var(--color-blue);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--color-blue);
  color: #FFFFFF;
}

.navbar-button {
  display: none;
  background: transparent;
  border: 1px solid var(--border-blue);
  padding: 6px 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background-color: var(--color-blue);
  transition: transform var(--transition-fast);
}

.nav-border-line {
  width: 100%;
  height: 1px;
  background: var(--border-light);
  opacity: 0.5;
}

/* ==========================================================================
   HERO SECTION & POLAROID PHOTO
   ========================================================================== */
.hero-section {
  padding-top: 130px;
  padding-bottom: 70px;
}

.hero-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.typedjs-wrapper {
  flex: 1;
  min-width: 300px;
}

.typed-text-cursor {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-family: var(--font-mono);
  display: inline-block;
  min-height: 60px;
}

/* POLAROID FRAME (BERMAWY STYLE PHOTO WRAP) */
.photo-wrap {
  position: relative;
  padding: 12px 12px 24px 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  box-shadow: 4px 6px 0px rgba(52, 90, 170, 0.15), 0 10px 25px rgba(0, 0, 0, 0.05);
  transform: rotate(2deg);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  width: 280px;
  cursor: pointer;
}

.photo-wrap:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 6px 10px 0px var(--border-blue), 0 15px 35px rgba(52, 90, 170, 0.15);
}

.polaroid-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #EBEBEB;
  border: 1px solid #DFDFDF;
}

.photo-default {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(105%) brightness(98%);
  transition: filter var(--transition-fast), transform var(--transition-smooth);
}

.photo-wrap:hover .photo-default {
  filter: contrast(110%) brightness(102%);
  transform: scale(1.03);
}

.photo-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(20, 20, 20, 0.85);
  color: #FFFFFF;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 3px 6px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.photo-tape {
  position: absolute;
  top: -12px;
  left: 35%;
  width: 70px;
  height: 22px;
  background: rgba(230, 243, 255, 0.85);
  border: 1px dashed var(--border-blue);
  transform: rotate(-3deg);
  pointer-events: none;
}

.hero-bio-row {
  max-width: 840px;
}

.paragraph {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 24px;
}

.paragraph strong {
  color: var(--text-main);
  font-weight: 700;
}

.hero-cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

/* RETRO BUTTONS */
.retro-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 0;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  text-decoration: none;
}

.primary-btn {
  background-color: var(--color-blue);
  color: #FFFFFF;
  border: 1px solid var(--color-blue);
}
.primary-btn:hover {
  background-color: var(--color-blue-dark);
  box-shadow: var(--shadow-retro);
  transform: translate(-2px, -2px);
}

.secondary-btn {
  background-color: var(--bg-ice);
  color: var(--color-blue);
  border: 1px solid var(--border-blue);
}
.secondary-btn:hover {
  background-color: var(--color-blue);
  color: #FFFFFF;
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-retro);
}

.outline-btn {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}
.outline-btn:hover {
  border-color: var(--border-blue);
  color: var(--color-blue);
  background-color: var(--bg-ice);
}

.btn-bracket {
  color: rgba(255, 255, 255, 0.7);
}
.secondary-btn .btn-bracket {
  color: var(--color-blue);
}

/* ==========================================================================
   SECTION COMMON HEADINGS (BERMAWY STYLE)
   ========================================================================== */
.section-2 {
  padding: 60px 0;
}

.section-heading-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-blue);
  padding-bottom: 8px;
  margin-bottom: 30px;
}

.text-block-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-blue);
  background: var(--bg-ice);
  padding: 4px 10px;
  border: 1px solid var(--border-blue);
  display: inline-block;
}

.heading-meta {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
}

.text-block-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-blue);
  transition: color var(--transition-fast);
}

.text-block-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   PROJECT CARDS (IN THE WORKS)
   ========================================================================== */
.grid-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-blue);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-retro-hover);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--color-blue);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 2px 6px;
}

.card-image-box {
  width: 100%;
  height: 140px;
  background: var(--bg-ice);
  border-bottom: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-ascii-preview {
  text-align: center;
}

.ascii-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-blue);
  display: block;
  letter-spacing: 1px;
}

.card-metric {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.card-link {
  color: var(--color-blue);
  transition: color var(--transition-fast);
}

.card-link:hover {
  text-decoration: underline;
}

.card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span {
  font-size: 10px;
  letter-spacing: 0.5px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 2px 6px;
  color: var(--text-main);
}

/* ==========================================================================
   TIMELINE & EXPERIENCE TABLE (EDITORIAL ROW LAYOUT)
   ========================================================================== */
.timeline-table {
  border: 1px solid var(--border-blue);
  background: var(--bg-secondary);
}

.timeline-row {
  display: grid;
  grid-template-columns: 180px 1fr 60px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-fast);
  cursor: pointer;
}

.timeline-row:last-child {
  border-bottom: none;
}

.timeline-row:hover,
.timeline-row:focus {
  background-color: var(--bg-ice);
  outline: none;
}

.time-col {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: 1px;
}

.title-col {
  padding-right: 20px;
}

.row-headline {
  margin-bottom: 6px;
}

.role-company {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.role-title {
  font-size: 13px;
  color: var(--color-blue);
  font-weight: 600;
}

.row-details {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.action-col {
  display: flex;
  justify-content: flex-end;
}

/* GLASSES ICON / READER INTERACTION */
.glasses-wrap {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--color-blue);
  transition: all var(--transition-fast);
}

.timeline-row:hover .glasses-wrap {
  background: var(--color-blue);
  color: #FFFFFF;
  border-color: var(--color-blue);
  transform: scale(1.05);
}

/* ==========================================================================
   SKILLS TICKER MARQUEE
   ========================================================================== */
.section-marquee {
  width: 100%;
  overflow: hidden;
  background: var(--bg-ice);
  border-top: 1px solid var(--border-blue);
  border-bottom: 1px solid var(--border-blue);
  padding: 14px 0;
  margin: 40px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  padding-right: 16px;
}

.skill-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-blue);
}

.skill-separator {
  color: var(--border-light);
  font-size: 14px;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   INTERACTIVE TABS & RETRO GAMEBOY CONSOLE
   ========================================================================== */
.tabs-container {
  border: 1px solid var(--border-blue);
  background: var(--bg-secondary);
}

.tabs-nav-bar {
  display: flex;
  border-bottom: 1px solid var(--border-blue);
  background: var(--bg-ice);
}

.tab-btn {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-blue);
  color: var(--color-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: lowercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn:hover {
  background: var(--bg-ice-hover);
}

.tab-btn.is-active {
  background: var(--color-blue);
  color: #FFFFFF;
}

.console-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  min-height: 480px;
}

.console-media-list {
  padding: 24px;
  border-right: 1px solid var(--border-blue);
}

.tab-pane {
  display: none;
}
.tab-pane.is-active {
  display: block;
}

.media-list-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.media-item:hover {
  border-color: var(--border-blue);
  background: var(--bg-ice);
  transform: translateX(4px);
}

.media-item.is-active {
  background: var(--bg-ice);
  border-color: var(--border-blue);
  box-shadow: 2px 2px 0px var(--border-blue);
}

.media-item-thumb-box {
  width: 90px;
  height: 54px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  text-align: center;
}

.thumb-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: 1px;
}

.thumb-mono {
  font-size: 8px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.media-item-info {
  flex: 1;
}

.media-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.media-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.media-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  transition: background-color var(--transition-fast);
}

.media-item.is-active .media-status-dot {
  background: var(--color-blue);
  box-shadow: 0 0 8px var(--color-blue);
}

/* ==========================================================================
   RETRO GAMEBOY HARDWARE CASING
   ========================================================================== */
.console-hardware-wrap {
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.gameboy-body {
  width: 290px;
  background: var(--gb-shell);
  border-radius: 12px 12px 30px 12px;
  border: 2px solid #5A5C60;
  box-shadow: 4px 6px 0px #3A3C40, inset 0 2px 3px #FFF;
  padding: 16px;
  position: relative;
  user-select: none;
}

.gameboy-top-vents {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-bottom: 10px;
  padding-right: 6px;
}

.gameboy-top-vents span {
  width: 20px;
  height: 3px;
  background: #A6A8AC;
  border-bottom: 1px solid #FFF;
}

/* SCREEN BEZEL */
.gameboy-screen-bezel {
  background: var(--gb-bezel);
  border-radius: 8px 8px 24px 8px;
  border: 2px solid #444548;
  padding: 12px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  letter-spacing: 0.5px;
  color: #B5B7BB;
  margin-bottom: 6px;
}

.battery-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
}

.battery-light {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E53935;
  box-shadow: 0 0 5px #FF5252;
}

.screen-brand {
  font-size: 7px;
}

/* CRT LCD SCREEN */
.gameboy-screen-display {
  background: var(--gb-screen-bg);
  height: 150px;
  border-radius: 4px;
  border: 2px solid #363E24;
  box-shadow: inset 2px 2px 8px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gb-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.15) 50%
  );
  background-size: 100% 3px;
  pointer-events: none;
  z-index: 2;
}

.gb-content {
  color: var(--gb-screen-text);
  font-family: var(--font-mono);
  z-index: 1;
}

.gb-title {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.gb-category {
  font-size: 9px;
  margin-top: 4px;
  font-weight: 700;
  color: var(--gb-screen-dark);
}

.gb-badge {
  font-size: 8px;
  margin-top: 3px;
  display: inline-block;
  background: var(--gb-screen-mid);
  color: var(--gb-screen-text);
  padding: 1px 4px;
  font-weight: 700;
}

.gb-desc {
  font-size: 9px;
  line-height: 1.3;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gb-hint {
  font-size: 7.5px;
  letter-spacing: 0.5px;
  margin-top: 8px;
  border-top: 1px dashed var(--gb-screen-dark);
  padding-top: 4px;
}

/* LOGO LINE */
.gameboy-logo-line {
  margin: 12px 0 6px 8px;
  font-size: 11px;
  letter-spacing: 1px;
}

.gb-nintendo {
  font-weight: 700;
  color: #2F3572;
}

.gb-dmg {
  font-style: italic;
  font-weight: 700;
  color: #1F224D;
  margin-left: 4px;
}

.gb-color {
  font-size: 8px;
  font-style: normal;
}

/* HARDWARE CONTROLS */
.gameboy-controls-cluster {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 4px;
}

/* DPAD */
.gameboy-dpad {
  position: relative;
  width: 76px;
  height: 76px;
}

.dpad-btn {
  position: absolute;
  background: var(--gb-btn-dark);
  border: 1px solid #1E1E20;
  cursor: pointer;
  transition: filter var(--transition-fast);
}

.dpad-btn:active {
  filter: brightness(1.3);
}

.dpad-up {
  top: 0;
  left: 26px;
  width: 24px;
  height: 28px;
  border-radius: 3px 3px 0 0;
}
.dpad-down {
  bottom: 0;
  left: 26px;
  width: 24px;
  height: 28px;
  border-radius: 0 0 3px 3px;
}
.dpad-left {
  top: 26px;
  left: 0;
  width: 28px;
  height: 24px;
  border-radius: 3px 0 0 3px;
}
.dpad-right {
  top: 26px;
  right: 0;
  width: 28px;
  height: 24px;
  border-radius: 0 3px 3px 0;
}
.dpad-center {
  position: absolute;
  top: 26px;
  left: 26px;
  width: 24px;
  height: 24px;
  background: var(--gb-btn-dark);
}

/* A & B BUTTONS */
.gameboy-action-buttons {
  display: flex;
  gap: 12px;
  transform: rotate(-25deg);
  margin-right: 6px;
}

.btn-action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.gb-round-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gb-btn-magenta);
  border: 1px solid #660E2A;
  box-shadow: 2px 3px 0px #4D091F;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}

.gb-round-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 #4D091F;
}

.btn-label {
  font-size: 8px;
  font-weight: 700;
  color: #384266;
  letter-spacing: 0.5px;
  transform: rotate(25deg);
}

/* SELECT / START PILL BUTTONS */
.gameboy-system-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
}

.pill-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: rotate(-25deg);
}

.gb-pill-btn {
  width: 38px;
  height: 10px;
  border-radius: 10px;
  background: #68696D;
  border: 1px solid #444;
  box-shadow: 1px 2px 0px #2D2E30;
  cursor: pointer;
}

.gb-pill-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0;
}

.pill-label {
  font-size: 8px;
  font-weight: 700;
  color: #384266;
  letter-spacing: 0.5px;
}

/* SPEAKER GRILLE */
.gameboy-speaker-grille {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  transform: rotate(-25deg);
  margin-top: 10px;
  padding-right: 14px;
}

.gameboy-speaker-grille span {
  width: 4px;
  height: 36px;
  background: #9D9FA4;
  border-radius: 4px;
  border-left: 1px solid #4E5054;
}

/* ==========================================================================
   FOOTER (BERMAWY 4-COLUMN + OVERSIZED WORDMARK)
   ========================================================================== */
.footer-2 {
  background: var(--bg-primary);
  border-top: 2px solid var(--border-blue);
  padding: 60px 0 30px 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-blue);
  border-bottom: 1px solid var(--border-blue);
  margin-bottom: 50px;
}

.footer-col {
  padding: 30px 20px;
  border-right: 1px solid var(--border-blue);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col:last-child {
  border-right: none;
}

.footer-col-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-blue);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.footer-link {
  font-size: 13px;
  color: var(--text-main);
  transition: color var(--transition-fast);
  word-break: break-all;
}

.footer-link:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

.footer-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-resume-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-blue);
  background: var(--bg-ice);
  border: 1px solid var(--border-blue);
  padding: 4px 8px;
  width: fit-content;
}

.footer-resume-tag:hover {
  background: var(--color-blue);
  color: #FFFFFF;
}

.footer-static-item {
  font-size: 13px;
  color: var(--text-muted);
}

/* OVERSIZED WORDMARK */
.footer-wordmark-wrap {
  text-align: center;
  padding-top: 20px;
}

.footer-wordmark {
  font-size: clamp(48px, 11vw, 130px);
  font-weight: 900;
  letter-spacing: clamp(6px, 1.6vw, 18px);
  color: var(--color-blue);
  opacity: 0.18;
  font-family: var(--font-mono);
  user-select: none;
  line-height: 0.9;
  text-transform: uppercase;
  transition: opacity var(--transition-smooth);
}

.footer-wordmark:hover {
  opacity: 0.35;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-light);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   MODAL WINDOWS (CONTACT & PREVIEW)
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-card {
  width: 90%;
  max-width: 540px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-blue);
  box-shadow: 8px 12px 0px var(--border-blue);
  padding: 24px;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-blue);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-blue);
}

.modal-close-btn {
  background: none;
  border: 1px solid var(--border-blue);
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: var(--color-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--color-blue);
  color: #FFF;
}

.modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-ice);
  border: 1px solid var(--border-blue);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.method-label {
  font-weight: 700;
  color: var(--color-blue);
  min-width: 75px;
}

.method-val {
  color: var(--text-main);
  flex: 1;
  font-weight: 600;
}

.copy-btn {
  background: var(--color-blue);
  color: #FFF;
  border: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--color-blue-dark);
}

.modal-footer-cta .full-w {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE <= 768px)
   ========================================================================== */
@media (max-width: 991px) {
  .grid-cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-col {
    border-bottom: 1px solid var(--border-blue);
  }
  .footer-col:nth-child(2) {
    border-right: none;
  }
  .console-layout {
    grid-template-columns: 1fr;
  }
  .console-media-list {
    border-right: none;
    border-bottom: 1px solid var(--border-blue);
  }
}

@media (max-width: 768px) {
  .navbar-button {
    display: flex;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border-blue);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .navbar-menu.is-open {
    display: flex;
  }

  .hero-header-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .photo-wrap {
    transform: none;
    margin: 10px 0;
  }

  .hero-cta-strip {
    justify-content: center;
  }

  .grid-cards-3 {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .action-col {
    display: none;
  }

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

  .footer-col {
    border-right: none;
  }

  .tabs-nav-bar {
    flex-direction: column;
  }
  
  .tab-btn {
    border-right: none;
    border-bottom: 1px solid var(--border-blue);
  }
}
