/* ==========================================================================
   GOTTFRIED SZING - 1995 RETRO EDITION STYLESHEET
   Authentic Web 1.0 / GeoCities / Netscape Navigator 2.0 Aesthetic
   ========================================================================== */

/* @import retro fonts */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&family=Share+Tech+Mono&display=swap');

:root {
  --bg-color: #000033;
  --text-color: #00ffcc;
  --link-color: #ffff00;
  --vlink-color: #ff00ff;
  --alink-color: #ff0000;
  --table-bg: #000080;
  --table-alt: #000066;
  --border-light: #ffffff;
  --border-dark: #000000;
  --border-gray: #c0c0c0;
  --win-gray: #c0c0c0;
  --win-dark: #808080;
  --neon-yellow: #ffff00;
  --neon-green: #00ff00;
  --neon-pink: #ff00ff;
  --neon-cyan: #00ffff;
  --neon-red: #ff3333;
}

* {
  box-sizing: border-box;
}

/* Background starfield pattern with fallback */
body {
  background-color: #000022;
  background-image: url('../images/cyber-starfield.gif');
  background-repeat: repeat;
  color: #00ffcc;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  cursor: default;
}

/* Sparkle Cursor Container */
.sparkle-particle {
  position: fixed;
  pointer-events: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  z-index: 99999;
  animation: sparkle-fade 0.6s linear forwards;
}

@keyframes sparkle-fade {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  100% { transform: scale(0.1) rotate(180deg); opacity: 0; }
}

/* ==========================================================================
   NETSCAPE NAVIGATOR 2.0 BROWSER WINDOW FRAME
   ========================================================================== */
.browser-chrome {
  background-color: var(--win-gray);
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  color: #000000;
  font-family: "MS Sans Serif", Arial, Helvetica, sans-serif;
  font-size: 12px;
  margin: 0 auto;
  max-width: 1080px;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.7);
}

.browser-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #ffffff;
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.titlebar-icon {
  width: 16px;
  height: 16px;
}

.titlebar-buttons {
  display: flex;
  gap: 3px;
}

.win-btn {
  width: 16px;
  height: 14px;
  background-color: var(--win-gray);
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  font-size: 9px;
  font-weight: bold;
  line-height: 11px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  color: #000;
}

.win-btn:active {
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
}

.browser-menubar {
  display: flex;
  background-color: var(--win-gray);
  border-bottom: 1px solid var(--win-dark);
  padding: 2px 6px;
  font-size: 12px;
}

.menu-item {
  padding: 2px 8px;
  cursor: pointer;
}

.menu-item:hover {
  background-color: #000080;
  color: #ffffff;
}

.menu-item u {
  text-decoration: underline;
}

.browser-toolbar {
  display: flex;
  align-items: center;
  background-color: var(--win-gray);
  border-bottom: 1px solid var(--win-dark);
  padding: 4px 6px;
  gap: 4px;
  overflow-x: auto;
}

.toolbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--win-gray);
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
  min-width: 50px;
  height: 42px;
  text-decoration: none;
  color: #000000;
  font-family: "MS Sans Serif", Arial, sans-serif;
}

.toolbar-btn:active {
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.toolbar-btn .btn-icon {
  font-size: 14px;
  font-weight: bold;
}

.netscape-logo-container {
  margin-left: auto;
  width: 42px;
  height: 42px;
  background-color: #000000;
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.netscape-n-anim {
  color: #00ffcc;
  font-family: 'Times New Roman', serif;
  font-size: 26px;
  font-weight: bold;
  text-shadow: 0 0 6px #00ffff, 0 0 12px #0088ff;
  animation: netscape-pulse 2s infinite ease-in-out;
}

@keyframes netscape-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #00ffcc); }
  50% { transform: scale(1.15) rotate(5deg); filter: drop-shadow(0 0 8px #ff00ff); }
}

.browser-locationbar {
  display: flex;
  align-items: center;
  background-color: var(--win-gray);
  padding: 4px 6px;
  border-bottom: 2px solid #000000;
  gap: 6px;
}

.location-label {
  font-weight: bold;
  font-size: 11px;
}

.location-input-box {
  flex-grow: 1;
  background-color: #ffffff;
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  padding: 3px 6px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: #000000;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   RETRO PAGE CONTENT CONTAINER
   ========================================================================== */
.web-canvas {
  background-color: #000033;
  padding: 16px;
  color: #00ffcc;
  min-height: 800px;
}

/* Banner / Header */
.page-top-header {
  text-align: center;
  margin-bottom: 12px;
}

.flame-header-table {
  width: 100%;
  border-collapse: collapse;
}

.torch-cell {
  width: 40px;
  text-align: center;
  vertical-align: middle;
}

.flaming-wordart {
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 38px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffff00 0%, #ff6600 50%, #ff0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 0px #000000, 0 0 10px #ff3300;
  margin: 0;
  line-height: 1.1;
}

.subtitle-wordart {
  font-family: "Comic Sans MS", "Comic Sans", cursive, sans-serif;
  font-size: 20px;
  color: #ffff00;
  text-shadow: 2px 2px 0px #ff0000;
  margin-top: 4px;
}

.subtitle-tags {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #00ffff;
  font-weight: bold;
  margin-top: 2px;
}

/* Marquee Styles */
.marquee-container {
  background-color: #000080;
  border-top: 3px solid #ffff00;
  border-bottom: 3px solid #ffff00;
  border-left: 3px solid #ff0000;
  border-right: 3px solid #ff0000;
  padding: 6px 0;
  margin: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.retro-marquee {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
  animation: marquee-scroll 25s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

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

/* Sound Jukebox & Audio Bar */
.midi-jukebox {
  background-color: #220033;
  border: 3px outset #ff00ff;
  padding: 8px 12px;
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: "Courier New", Courier, monospace;
  color: #00ffff;
}

.jukebox-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jukebox-title {
  color: #ffff00;
  font-weight: bold;
  font-size: 14px;
}

.jukebox-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.retro-btn {
  background-color: var(--win-gray);
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  color: #000000;
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  cursor: pointer;
}

.retro-btn:active {
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.retro-btn-yellow {
  background-color: #ffff00;
  color: #000080;
  border-color: #ffffff #808000 #808000 #ffffff;
}

.retro-btn-green {
  background-color: #00ff00;
  color: #000000;
}

.retro-btn-red {
  background-color: #ff3333;
  color: #ffffff;
}

/* Main 90s Layout Table */
.main-layout-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 12px;
}

.sidebar-cell {
  width: 240px;
  vertical-align: top;
  background-color: #000055;
  border: 3px outset #00ffff;
  padding: 10px;
}

.content-cell {
  vertical-align: top;
}

/* Sidebar Menu */
.sidebar-box {
  margin-bottom: 16px;
}

.sidebar-heading {
  background-color: #000080;
  color: #ffff00;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 13px;
  padding: 4px 6px;
  border: 2px solid #ffff00;
  text-align: center;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 8px;
}

.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav-list li {
  margin-bottom: 6px;
}

.nav-button-link {
  display: block;
  background-color: var(--win-gray);
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #000000;
  border-bottom: 2px solid #000000;
  color: #000080;
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 8px;
  text-decoration: none;
  text-align: left;
  transition: none;
}

.nav-button-link:hover {
  background-color: #ffff00;
  color: #ff0000;
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* Counter Box */
.counter-box {
  background-color: #000000;
  border: 3px inset #c0c0c0;
  padding: 8px;
  text-align: center;
  margin: 12px 0;
}

.counter-label {
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 4px;
}

.counter-display {
  display: inline-flex;
  gap: 2px;
  background-color: #111111;
  padding: 4px 8px;
  border: 2px inset #555555;
}

.odometer-digit {
  background: linear-gradient(180deg, #333333 0%, #000000 50%, #222222 100%);
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 20px;
  font-weight: bold;
  padding: 0 4px;
  border: 1px solid #444444;
  text-shadow: 0 0 6px #00ff00;
}

/* Badge Rack in Sidebar */
.badge-rack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.badge-rack img {
  border: 1px solid #ffffff;
}

/* ==========================================================================
   CONTENT SECTIONS & 90s TABLES
   ========================================================================== */
.section-panel {
  background-color: #000044;
  border: 3px outset #ffcc00;
  padding: 14px;
  margin-bottom: 20px;
}

.panel-header-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(90deg, #800000, #ff0000, #800000);
  border: 2px solid #ffff00;
  margin-bottom: 12px;
}

.panel-header-table td {
  padding: 6px 10px;
  vertical-align: middle;
}

.panel-title {
  color: #ffff00;
  font-family: "Comic Sans MS", "Arial Black", cursive, sans-serif;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 0px #000000;
  margin: 0;
}

/* Profile Hero Section */
.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.photo-frame-cell {
  width: 220px;
  vertical-align: top;
  text-align: center;
  padding-right: 16px;
}

.gold-frame {
  background: linear-gradient(135deg, #ffd700, #b8860b, #ffd700);
  padding: 6px;
  border: 3px outset #ffd700;
  display: inline-block;
}

.photo-inner {
  border: 2px inset #000000;
  background-color: #000000;
}

.photo-inner img {
  display: block;
  max-width: 180px;
  height: auto;
  filter: contrast(1.15) saturate(1.2);
}

.photo-caption {
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-size: 13px;
  color: #ffff00;
  margin-top: 6px;
}

.bio-content-cell {
  vertical-align: top;
}

.bio-intro-text {
  font-size: 17px;
  color: #ffffff;
  line-height: 1.5;
  margin-top: 0;
}

.bio-highlight-box {
  background-color: #000080;
  border: 2px dashed #00ffff;
  padding: 10px;
  margin: 10px 0;
  font-family: "Courier New", Courier, monospace;
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
}

.stat-table td {
  padding: 6px;
  border: 1px solid #00ffff;
  text-align: center;
  font-size: 14px;
}

/* 90s Blink Effect */
.retro-blink, blink {
  animation: retro-blink-anim 1s step-start infinite;
}

@keyframes retro-blink-anim {
  50% { opacity: 0; }
}

/* Rainbow Divider */
.rainbow-divider {
  width: 100%;
  height: 12px;
  margin: 16px 0;
  background-image: url('../images/flame-bar.gif');
  background-repeat: repeat-x;
  background-size: contain;
}

/* 90s Tables for Experience & Certifications */
.data-table-90s {
  width: 100%;
  border-collapse: collapse;
  border: 3px outset #ffffff;
  margin: 12px 0;
}

.data-table-90s th {
  background-color: #800080;
  color: #ffffff;
  border: 2px inset #ffffff;
  padding: 8px;
  font-family: "Arial Black", sans-serif;
  font-size: 13px;
  text-align: left;
  text-transform: uppercase;
}

.data-table-90s td {
  border: 2px inset #ffffff;
  padding: 8px;
  background-color: #000066;
  color: #ffffff;
  vertical-align: top;
  font-size: 14px;
}

.data-table-90s tr:nth-child(even) td {
  background-color: #000044;
}

.data-table-90s tr:hover td {
  background-color: #003366;
}

.tech-pill-90s {
  display: inline-block;
  background-color: #008080;
  color: #ffffff;
  border: 1px solid #00ffff;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 5px;
  margin: 2px;
}

/* Skill Progress Bars */
.skill-meter-table {
  width: 100%;
  border-collapse: collapse;
}

.skill-meter-table td {
  padding: 6px;
  border-bottom: 1px dotted #00ffff;
}

.meter-outer {
  background-color: #000000;
  border: 2px inset #c0c0c0;
  height: 18px;
  width: 100%;
  position: relative;
}

.meter-inner {
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #00ff00 0px,
    #00ff00 8px,
    #003300 8px,
    #003300 10px
  );
}

/* Certifications Grid Table */
.cert-cards-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 8px;
}

.cert-card-cell {
  width: 50%;
  background-color: #001a4d;
  border: 2px outset #00ffff;
  padding: 10px;
  vertical-align: top;
}

.cert-badge-tag {
  background-color: #ff0000;
  color: #ffffff;
  font-family: "Arial Black", sans-serif;
  font-size: 10px;
  padding: 2px 6px;
  display: inline-block;
  border: 1px solid #ffff00;
}

.cert-title {
  color: #ffff00;
  font-weight: bold;
  font-size: 15px;
  margin: 6px 0 2px 0;
}

.cert-org {
  color: #00ffff;
  font-size: 13px;
  font-style: italic;
  margin-bottom: 6px;
}

/* WebRing Component */
.webring-box {
  background-color: #002244;
  border: 4px ridge #ff00ff;
  padding: 12px;
  text-align: center;
  margin: 16px 0;
}

.webring-title {
  font-family: "Impact", sans-serif;
  font-size: 20px;
  color: #ff00ff;
  letter-spacing: 1px;
}

.webring-nav {
  margin-top: 8px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: bold;
}

.webring-nav a {
  color: #ffff00;
  text-decoration: underline;
  margin: 0 6px;
}

.webring-nav a:hover {
  color: #ff0000;
  background-color: #ffff00;
}

/* Interactive Guestbook */
.guestbook-box {
  background-color: #1a0033;
  border: 3px double #00ffff;
  padding: 14px;
}

.guestbook-form {
  background-color: #000066;
  border: 2px inset #ffffff;
  padding: 12px;
  margin-bottom: 16px;
}

.form-group-90s {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.form-group-90s label {
  width: 140px;
  font-weight: bold;
  font-size: 14px;
  color: #ffff00;
}

.form-input-90s, .form-textarea-90s, .form-select-90s {
  flex-grow: 1;
  background-color: #ffffff;
  color: #000000;
  border: 2px inset #808080;
  padding: 4px 6px;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.guestbook-entries {
  max-height: 380px;
  overflow-y: auto;
  border: 2px inset #000000;
  background-color: #000022;
  padding: 8px;
}

.guestbook-entry {
  background-color: #000055;
  border-bottom: 2px dashed #00ffff;
  padding: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  color: #ffff00;
  font-weight: bold;
  margin-bottom: 4px;
}

.entry-body {
  color: #ffffff;
  font-family: "Courier New", monospace;
}

/* Footer */
.retro-footer {
  text-align: center;
  background-color: #000022;
  border-top: 3px double #ffff00;
  padding: 16px 8px;
  margin-top: 20px;
  font-family: "Courier New", Courier, monospace;
  color: #c0c0c0;
}

.footer-awards-rack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}

/* CRT Screen Effect Toggle */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.04),
    rgba(0, 255, 0, 0.02),
    rgba(0, 0, 255, 0.04)
  );
  background-size: 100% 3px, 6px 100%;
  z-index: 9999;
  display: none;
}

body.crt-active .crt-overlay {
  display: block;
}

/* Matrix Rave Easter Egg */
body.matrix-rave {
  animation: rave-bg 0.5s infinite alternate !important;
}

@keyframes rave-bg {
  0% { filter: hue-rotate(0deg) contrast(1.5); }
  50% { filter: hue-rotate(180deg) contrast(2); }
  100% { filter: hue-rotate(360deg) contrast(1.5); }
}

/* Responsive fallbacks for smaller viewports */
@media (max-width: 768px) {
  .main-layout-table, .main-layout-table tbody, .main-layout-table tr, .main-layout-table td {
    display: block !important;
    width: 100% !important;
  }
  .sidebar-cell {
    width: 100% !important;
    margin-bottom: 16px;
  }
  .photo-frame-cell {
    display: block !important;
    width: 100% !important;
    margin-bottom: 12px;
  }
  .cert-cards-table, .cert-cards-table tbody, .cert-cards-table tr, .cert-card-cell {
    display: block !important;
    width: 100% !important;
  }
  .form-group-90s {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-group-90s label {
    width: 100%;
    margin-bottom: 4px;
  }
  .flaming-wordart {
    font-size: 26px;
  }
}
