/* Welcome to my 90s stylesheet!
   Now with 100% more reliable SVGs and a cool CSS starry background!
*/

/* Prevent horizontal scrolling on all devices */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif;
  color: #ffff00; /* Bright yellow text */
  margin: 0;
  padding: 0;
  /* Simple black background - stars are now animated via ::before */
  background-color: #000000;
  min-height: 100vh;
}

/* 90s-style navbar */
.navbar {
  background: linear-gradient(to bottom, #c0c0c0 0%, #808080 100%);
  border-bottom: 4px ridge #c0c0c0;
  padding: 8px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  width: 100%;
  box-sizing: border-box;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
}

.navbar li {
  display: inline-block;
}

.navbar a {
  display: block;
  padding: 8px 15px;
  background: linear-gradient(to bottom, #c0c0c0 0%, #a0a0a0 50%, #808080 100%);
  border: 2px outset #c0c0c0;
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.1s ease;
  box-sizing: border-box;
}

.navbar a:hover {
  background: linear-gradient(to bottom, #e0e0e0 0%, #c0c0c0 50%, #a0a0a0 100%);
  border: 2px inset #c0c0c0;
  transform: translateY(1px);
}

.navbar a.active {
  background: linear-gradient(to bottom, #808080 0%, #606060 50%, #404040 100%);
  border: 2px inset #c0c0c0;
  color: #ffffff;
  transform: translateY(1px);
}

/* Social buttons in navbar */
.navbar .social-btn {
  padding: 4px 8px;
  font-size: 10px;
  min-width: auto;
}

.navbar .social-btn svg {
  width: 60px;
  height: 22px;
  max-width: 100%;
}

.container {
  max-width: 750px;
  width: 95%;
  margin: 10px auto;
  background-color: #000080; /* Dark blue container background */
  border: 5px ridge #c0c0c0; /* Classic 3D silver border */
  padding: 10px;
  box-shadow: 10px 10px 5px #000;
  box-sizing: border-box;
  overflow-x: hidden;
}

h1 {
  font-size: 2rem;
  background-color: #c0c0c0;
  color: #000000;
  padding: 10px;
  border: 2px outset #ffffff;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0 0 20px 0;
  box-sizing: border-box;
  word-wrap: break-word;
}

h2 {
  font-size: 1.5rem;
  background-color: #c0c0c0;
  color: #000000;
  padding: 8px;
  border: 2px outset #ffffff;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  margin: 15px 0;
  box-sizing: border-box;
  word-wrap: break-word;
}

a {
  color: #00ffff; /* Cyan links */
  font-weight: bold;
}

a:hover {
  color: #ffffff; /* White on hover */
}

hr {
  border: 2px dashed #ff00ff;
  margin: 15px 0;
  width: 100%;
  box-sizing: border-box;
}

.header-image {
  display: block;
  margin: 0 auto 15px auto;
  max-width: 100%;
  height: auto;
  width: auto;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  background: transparent;
}

.marquee-text {
  font-size: 1rem;
  color: #00ff00;
  white-space: nowrap;
  animation: scroll-left 8s linear infinite;
  padding: 5px 0;
  display: inline-block;
  padding-left: 100%;
  will-change: transform;
}

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

.job-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.9rem;
  box-sizing: border-box;
  table-layout: fixed;
}

.job-table td {
  padding: 8px;
  border: 2px solid #c0c0c0;
  color: #ffffff; /* White text for table content */
  vertical-align: top;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.job-table .date {
  width: 100px;
  font-weight: bold;
  color: #ffff00;
  white-space: nowrap;
}

.job-table strong {
  color: #00ff00; /* Green for company names */
  font-size: 1.1em;
  display: block;
  margin-bottom: 5px;
  word-wrap: break-word;
}

.job-table p {
  margin: 2px 0;
  line-height: 1.2;
  word-wrap: break-word;
}

.footer {
  text-align: center;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

.reach-out {
  margin-top: 15px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.reach-out a {
  color: #ffff00; /* Match the main text color */
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.reach-out a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.reach-out a:hover svg path {
  fill: #ffffff; /* Make the email icon white on hover */
}

.construction-svg {
  display: block;
  margin: 15px auto;
  max-width: 100%;
}

.hit-counter {
  margin-top: 15px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.hit-counter img {
  max-width: 100%;
  height: auto;
}

/* Blog-specific styles */
.blog-post {
  background-color: #000040;
  border: 3px ridge #c0c0c0;
  padding: 15px;
  margin: 20px 0;
  box-shadow: 5px 5px 3px #000;
  box-sizing: border-box;
  width: 100%;
}

.post-title {
  color: #00ff00;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 5px;
  text-decoration: underline;
  word-wrap: break-word;
}

.post-date {
  color: #ff00ff;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.post-content {
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 10px;
  word-wrap: break-word;
}

.post-content p {
  margin: 10px 0;
  word-wrap: break-word;
}

.coming-soon {
  text-align: center;
  padding: 30px;
  border: 3px dashed #ff00ff;
  margin: 20px 0;
  background-color: #000040;
  box-sizing: border-box;
  width: 100%;
}

.coming-soon h3 {
  color: #00ff00;
  font-size: 1.5rem;
  margin-bottom: 10px;
  animation: blink 1s linear infinite;
  word-wrap: break-word;
}

.coming-soon p {
  color: #ffff00;
  font-size: 1.1rem;
  word-wrap: break-word;
}

/* Blinking animation for that classic GIF feel */
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.blinking-text {
  animation: blink 1s linear infinite;
}

/* Snake Game Styles */
.snake-game-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.snake-game-wrapper {
  background-color: #000080;
  border: 5px ridge #c0c0c0;
  padding: 20px;
  box-shadow: 10px 10px 5px #000;
  text-align: center;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

.game-title {
  color: #ffff00;
  font-size: 1.5rem;
  margin: 0 0 15px 0;
  text-shadow: 2px 2px 0px #000;
  animation: blink 2s linear infinite;
}

.game-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 20px;
  flex-wrap: wrap;
}

.score,
.high-score {
  color: #00ff00;
  font-weight: bold;
  font-size: 1.1rem;
  background-color: #000040;
  padding: 5px 10px;
  border: 2px inset #c0c0c0;
}

#snakeCanvas {
  border: 3px solid #c0c0c0;
  background-color: #000080;
  display: block;
  margin: 0 auto 15px auto;
  max-width: 100%;
  height: auto;
}

.game-controls {
  margin-bottom: 15px;
}

.game-controls p {
  color: #ffffff;
  margin: 10px 0;
  font-size: 0.9rem;
}

.game-btn {
  background: linear-gradient(to bottom, #c0c0c0 0%, #a0a0a0 50%, #808080 100%);
  border: 2px outset #c0c0c0;
  color: #000000;
  font-weight: bold;
  padding: 8px 15px;
  margin: 5px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  transition: all 0.1s ease;
}

.game-btn:hover {
  background: linear-gradient(to bottom, #e0e0e0 0%, #c0c0c0 50%, #a0a0a0 100%);
  border: 2px inset #c0c0c0;
  transform: translateY(1px);
}

.game-btn:active {
  background: linear-gradient(to bottom, #808080 0%, #606060 50%, #404040 100%);
  color: #ffffff;
}

.game-status {
  color: #ff00ff;
  font-weight: bold;
  font-size: 1.1rem;
  text-shadow: 1px 1px 0px #000;
  min-height: 1.5em;
}

/* Starry glow animation */
@keyframes starGlow {
  0%,
  100% {
    opacity: 0.1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

/* Apply glow animation to the starry background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      white,
      rgba(255, 255, 255, 0.2) 2px,
      transparent 40px
    ),
    radial-gradient(white, rgba(255, 255, 255, 0.15) 1px, transparent 30px),
    radial-gradient(white, rgba(255, 255, 255, 0.1) 2px, transparent 40px),
    radial-gradient(
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.1) 2px,
      transparent 30px
    );
  background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px;
  background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
  animation: starGlow 10s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .navbar {
    padding: 6px 2px;
  }

  .navbar ul {
    gap: 2px;
    padding: 0 2px;
  }

  .navbar a {
    padding: 5px 6px;
    font-size: 10px;
    min-width: auto;
  }

  .navbar .social-btn {
    padding: 3px 4px;
    font-size: 8px;
  }

  .navbar .social-btn svg {
    width: 40px;
    height: 15px;
  }

  .container {
    margin: 8px;
    padding: 6px;
    border-width: 2px;
    overflow-x: hidden;
  }

  h1 {
    font-size: 1.3rem;
    padding: 5px;
  }

  h2 {
    font-size: 1.1rem;
    padding: 5px;
  }

  .header-image {
    width: 95%;
    max-width: 280px;
  }

  .header-image text {
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif !important;
  }

  .marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .marquee-text {
    font-size: 0.75rem;
    animation-duration: 10s;
    max-width: 100%;
    contain: layout;
    will-change: transform;
  }

  .job-table {
    font-size: 0.75rem;
    width: 100%;
    max-width: 100%;
  }

  .job-table td {
    padding: 4px;
  }

  .job-table .date {
    width: 70px;
    font-size: 0.7rem;
  }

  .job-table strong {
    font-size: 0.9rem;
  }

  .reach-out {
    font-size: 0.8rem;
    text-align: center;
  }

  .reach-out svg {
    width: 20px;
    height: 20px;
  }

  .blog-post {
    padding: 8px;
    margin: 10px 0;
  }

  .post-title {
    font-size: 1rem;
  }

  .coming-soon {
    padding: 15px;
    margin: 10px 0;
  }

  /* Snake Game Mobile Styles */
  .snake-game-wrapper {
    padding: 15px;
    border-width: 3px;
  }

  .game-title {
    font-size: 1.2rem;
  }

  .game-info {
    gap: 10px;
    justify-content: center;
  }

  .score,
  .high-score {
    font-size: 0.9rem;
    padding: 4px 8px;
  }

  #snakeCanvas {
    width: 90vw;
    max-width: 350px;
    height: auto;
  }

  .game-controls p {
    font-size: 0.8rem;
  }

  .game-btn {
    padding: 6px 12px;
    font-size: 11px;
    margin: 3px;
  }

  .game-status {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 4px 1px;
  }

  .navbar ul {
    gap: 1px;
    flex-direction: column;
    padding: 0 1px;
  }

  .navbar .nav-row {
    display: flex;
    gap: 1px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .navbar a {
    padding: 3px 4px;
    font-size: 9px;
    min-width: auto;
  }

  .navbar .social-btn {
    padding: 2px 3px;
    font-size: 7px;
  }

  .navbar .social-btn svg {
    width: 35px;
    height: 12px;
  }

  .container {
    margin: 4px;
    padding: 4px;
    border-width: 1px;
    overflow-x: hidden;
  }

  h1 {
    font-size: 1.1rem;
    padding: 4px;
  }

  h2 {
    font-size: 0.95rem;
    padding: 4px;
  }

  .header-image {
    width: 98%;
    max-width: 240px;
  }

  .header-image text {
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif !important;
  }

  .marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .marquee-text {
    font-size: 0.65rem;
    animation-duration: 12s;
    max-width: 100%;
    contain: layout;
    will-change: transform;
  }

  .job-table {
    font-size: 0.65rem;
    width: 100%;
    max-width: 100%;
  }

  .job-table td {
    padding: 3px;
  }

  .job-table .date {
    width: 60px;
    font-size: 0.6rem;
  }

  .reach-out {
    font-size: 0.75rem;
    flex-direction: column;
    gap: 3px;
  }

  .reach-out svg {
    width: 18px;
    height: 18px;
  }

  .blog-post {
    padding: 6px;
    margin: 8px 0;
  }

  .coming-soon {
    padding: 10px;
    margin: 8px 0;
  }

  .coming-soon h3 {
    font-size: 1rem;
  }

  .coming-soon p {
    font-size: 0.8rem;
  }

  /* Stack table for very small screens */
  .job-table tr {
    display: block;
    margin-bottom: 8px;
    border: 1px solid #c0c0c0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .job-table td {
    display: block;
    border: none;
    border-bottom: 1px solid #808080;
    padding: 3px 5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .job-table .date {
    width: 100%;
    max-width: 100%;
    background-color: #333;
    font-weight: bold;
    text-align: center;
  }

  .job-table td:last-child {
    border-bottom: none;
  }

  /* Snake Game Ultra Mobile Styles */
  .snake-game-wrapper {
    padding: 10px;
    border-width: 2px;
    max-width: 95vw;
  }

  .game-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .game-info {
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }

  .score,
  .high-score {
    font-size: 0.8rem;
    padding: 3px 6px;
  }

  #snakeCanvas {
    width: 85vw;
    max-width: 280px;
    height: auto;
  }

  .game-controls p {
    font-size: 0.7rem;
    margin: 5px 0;
  }

  .game-btn {
    padding: 5px 10px;
    font-size: 10px;
    margin: 2px;
  }

  .game-status {
    font-size: 0.8rem;
  }
}
