@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;700&display=swap');

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

:root {
  --text-color: #0f0;
}

body {
  font-family: 'Roboto Mono', sans-serif;
  background-color: #000;
  color: #ccc;
  font-size: 18px;
  line-height: 1.6;
}

h1 {
  color: var(--text-color);
  font-size: 50px;
  letter-spacing: -5px;
  margin-bottom: 20px;
}

h2,
span {
  color: var(--text-color);
}

h3 {
  margin-bottom: 10px;
}

.company-name {
  color: var(--text-color);
  margin-top: 20px;
  margin-bottom: 15px;
}

ul {
  list-style-type: none;
}

a {
  color: #0bc;
  text-decoration: none;
}

.resume {
  color: #0f0;
  text-decoration: none;
}

li {
  font-size: 115%;
}

p {
  margin: 20px 0;
}

nav {
  width: 30%;
}

nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

nav ul li {
  color: var(--text-color);
  cursor: pointer;
}

.container {
  max-width: 1000px;
  margin: auto;
  height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.wb-body {
  background: #111;
  padding: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.wb-body p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.wb-body h2 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hidden {
  display: none;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loading-screen.loaded {
  display: none;
}

.loading-terminal {
  max-width: 800px;
  width: 90%;
  padding: 20px;
}

.loading-text p {
  color: var(--text-color);
  font-size: 16px;
  margin: 8px 0;
  opacity: 0;
  animation: fadeInText 0.3s ease-in-out forwards;
}

.loading-text p:nth-child(1) {
  animation-delay: 0.3s;
}

.loading-text p:nth-child(2) {
  animation-delay: 0.8s;
}

.loading-text p:nth-child(3) {
  animation-delay: 1.4s;
}

.loading-text p:nth-child(4) {
  animation-delay: 2s;
}

.loading-text p:nth-child(5) {
  animation-delay: 2.6s;
}

.loading-text p:nth-child(6) {
  animation-delay: 3.2s;
}

.loading-text p:nth-child(7) {
  animation-delay: 3.8s;
}

.loading-text p:nth-child(8) {
  animation-delay: 4.4s;
}

.loading-text p:nth-child(9) {
  animation-delay: 5s;
}

.loading-text p:nth-child(10) {
  animation-delay: 6.5s;
}

.done-text {
  color: #0f0 !important;
  font-weight: bold;
}

.done-text.beeping {
  animation: beepBlink 1.6s ease-in-out 1 !important;
}

.warning-text {
  color: #ff0 !important;
  font-size: 14px;
  margin-top: 10px !important;
  font-weight: bold;
}

@keyframes beepBlink {

  0% {
    opacity: 1;
  }

  25% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  75% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    visibility: hidden;
  }
}

#about-content,
#contact-content,
#projects-content {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: block !important;
}

#about-content p,
#contact-content p,
#projects-content p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 100%;
}

#about-content h2,
#contact-content h2,
#projects-content h2 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

#about-content h3,
#contact-content h3,
#projects-content h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

#about-content ul,
#contact-content ul,
#projects-content ul {
  max-width: 100%;
}

#about-content li,
#contact-content li,
#projects-content li {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.cursor {
  font-weight: 700;
  animation: 1s blink step-end infinite;
}

@keyframes blink {

  from,
  to {
    color: transparent;
  }

  50% {
    color: var(--text-color);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 255, 0, 1), 0 0 30px rgba(0, 255, 0, 0.8);
  }
}

/* Animate WinBox fullscreen/expansion button only */
.wb-full {
  animation: pulse 2s ease-in-out infinite, glow 2s ease-in-out infinite;
}

/* Ensure WinBox controls are always visible */
.wb-header {
  display: flex !important;
  justify-content: space-between !important;
}

.wb-title {
  flex: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.wb-control {
  flex-shrink: 0 !important;
  display: flex !important;
}

/* Hide the maximize button (double square), keep minimize, fullscreen, and close */
.wb-max {
  display: none !important;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.terminal {


  left: 50%;
  top: 50%;

  text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.4);

  height: 70px;

  font-size: 16px;
  border: none;
  outline: none;
  color: inherit;
}

.dollar:before {
  content: '$';
  color: #52a563;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
    overflow-x: hidden;
  }

  /* WinBox modal responsive styles */
  .winbox {
    width: 90vw !important;
    max-width: 90vw !important;
    left: 5vw !important;
    right: 5vw !important;
    top: 10vh !important;
  }

  .wb-body {
    overflow-y: auto !important;
    max-height: 60vh !important;
  }

  h1 {
    font-size: 24px;
    letter-spacing: -1px;
    text-align: center;
    word-break: break-word;
  }

  nav {
    width: 100%;
    margin-bottom: 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav ul li {
    font-size: 90%;
  }

  .container {
    padding: 15px;
    height: auto;
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 40px;
  }

  main {
    width: 100%;
    max-width: 100%;
  }

  .terminal {
    font-size: 12px;
    width: 100%;
    height: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .terminal span {
    display: block;
    word-break: break-word;
  }

  li {
    font-size: 90%;
  }

  p {
    margin: 15px 0;
    word-wrap: break-word;
  }

  .wb-body {
    padding: 15px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    width: 100% !important;
  }

  .wb-body p {
    font-size: 12px !important;
    margin: 10px 0 !important;
    max-width: 100% !important;
  }

  .wb-body h2 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
    max-width: 100% !important;
  }

  .wb-body h3 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    margin-top: 15px !important;
    max-width: 100% !important;
  }

  .wb-body ul {
    max-width: 100% !important;
    padding-left: 0 !important;
  }

  .wb-body li {
    font-size: 11px !important;
    margin-bottom: 8px !important;
    max-width: 100% !important;
  }

  .wb-body * {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 12px;
  }

  /* WinBox modal for smaller phones */
  .winbox {
    width: 95vw !important;
    max-width: 95vw !important;
    left: 2.5vw !important;
    right: 2.5vw !important;
    top: 5vh !important;
  }

  .wb-body {
    max-height: 70vh !important;
  }

  h1 {
    font-size: 20px;
    letter-spacing: 0;
  }

  h2 {
    font-size: 18px;
  }

  .terminal {
    font-size: 11px;
  }

  nav ul {
    gap: 8px;
  }

  nav ul li {
    font-size: 85%;
  }

  .container {
    padding: 10px;
    padding-top: 30px;
  }

  li {
    font-size: 85%;
  }

  .wb-body {
    padding: 10px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
  }

  .wb-body p {
    font-size: 11px !important;
    margin: 8px 0 !important;
  }

  .wb-body h2 {
    font-size: 14px !important;
  }

  .wb-body h3 {
    font-size: 12px !important;
    margin-bottom: 6px !important;
    margin-top: 12px !important;
  }

  .wb-body li {
    font-size: 10px !important;
    margin-bottom: 6px !important;
  }
}