body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #1e1e1e;
  color: #ddd;
  height: 100vh;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(-45deg, #1e3c72, #2a5298, #3a3a3a, #000000);
  background-size: 400% 400%;
  animation: bgAnimate 20s ease infinite;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
}

@keyframes bgAnimate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#splash {
  position: fixed;
  z-index: 9999;
  background-color: #1a1a1a;
  color: white;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.5s ease;
}

.splash-content {
  text-align: center;
}

#splash h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.loader {
  width: 80%;
  background: #444;
  height: 20px;
  margin: 20px auto;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: #0078d7;
}

#loading-text {
  font-size: 1.5em;
  color: #ccc;
  margin-top: 10px;
  font-weight: bold;
  font-family: monospace;
}

#enter-btn {
  padding: 10px 20px;
  font-size: 1em;
  background: #0078d7;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 15px;
}

#enter-btn:disabled {
  background-color: #555;
  cursor: not-allowed;
  opacity: 0.6;
}

#desktop {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hidden-icons .icon {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.show-icons .icon {
  opacity: 1;
  transform: translateY(0);
}

.icon {
  width: 80px;
  text-align: center;
  cursor: default;
  color: #ddd;
}
.icon img {
  width: 48px;
  height: 48px;
  filter: invert(1);
}
.icon span {
  display: block;
  margin-top: 5px;
}

#taskbar {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 62px;
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ddd;
  padding: 0 20px;
  box-sizing: border-box;
}

.power-button {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0078d7;
  border-radius: 6px;
  cursor: pointer;
  margin: 6px 0;
}
.power-button img {
  width: 28px;
  height: 28px;
  filter: invert(1);
}

#blackout {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 1s ease-in-out;
}

.time-display {
  font-size: 16px;
  font-weight: bold;
  font-family: monospace;
  white-space: nowrap;
  padding: 0 10px;
}

.window {
  position: absolute;
  top: 100px;
  left: 100px;
  width: 300px;
  min-width: 200px;
  min-height: 150px;
  border: 2px solid #000;
  background-color: #2e2e2e;
  display: none;
  z-index: 10;
  box-shadow: 5px 5px #000;
  color: #ddd;
  resize: both;
  overflow: auto;
  background: var(--window-bg, rgba(255, 255, 255, 0.15));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.title-bar {
  background-color: #0078d7;
  color: white;
  padding: 5px;
  display: flex;
  justify-content: space-between;
  cursor: move;
  user-select: none;
}

.window-content {
  padding: 10px;
}

.window button {
  background: transparent;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

a.link {
  color: #4ea1ff;
  text-decoration: none;
}

a.link:hover {
  text-decoration: underline;
}

#now-playing {
  position: absolute;
  bottom: 80px;
  right: 20px;
  background: #2a2a2a;
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 2px 2px 10px #000;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#now-playing .controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

#now-playing button {
  background: #0078d7;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

#now-playing input[type=range] {
  width: 100px;
}

#taskbar-apps {
  display: flex;
  gap: 6px;
}

.taskbar-icon {
  background-color: #1e1e1e;
  color: white;
  border: 1px solid #444;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
}

.taskbar-icon:hover {
  background-color: #333;
}

.window-buttons {
  display: flex;
  gap: 4px;
}

.window-buttons button {
  background: transparent;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.download-btn {
  padding: 10px 18px;
  font-size: 14px;
  background-color: #0078d7;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 2px 2px 5px #0006;
}

.download-btn img {
  filter: invert(1);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 2px 4px 10px #000a;
  background-color: #005aab;
}

#taskbar-apps {
  display: flex;
  gap: 10px;
  align-items: center;
}

.taskbar-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
}

.taskbar-icon:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.taskbar-icon img {
  width: 32px;
  height: 32px;
  filter: invert(1);
}

.copy-btn {
  margin-left: 10px;
  padding: 4px 10px;
  font-size: 12px;
  background-color: #0078d7;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background-color: #005aab;
}

.welcome-content {
  max-width: 700px;
  margin: auto;
  text-align: center;
  color: #f0f0f0;
}

.welcome-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
}

.welcome-content h1 span {
  color: #4ea1ff;
}

.subtitle {
  font-size: 1.1rem;
  margin: 10px 0 30px;
  color: #dddddd;
}

.card-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: #3a3a3a;
  color: #f0f0f0;     
  border-radius: 12px;
  padding: 20px;
  width: 200px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.card img {
  filter: invert(1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.scroll-indicator {
  margin-top: 40px;
  color: #555;
  font-size: 0.9rem;
}

.mouse {
  width: 20px;
  height: 35px;
  border: 2px solid #555;
  border-radius: 12px;
  margin: 8px auto 0;
  position: relative;
}

.mouse::before {
  content: '';
  width: 4px;
  height: 6px;
  background: #555;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% { opacity: 0; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 8px); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

.welcome-photo {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.welcome-photo img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.project-card {
  background: #3a3a3a;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card img {
  width: 50px;
  filter: invert(1);
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: 1rem;
  color: #fff;
  margin: 10px 0 5px;
}

.project-card p {
  font-size: 0.85rem;
  color: #bbb;
  margin-bottom: 15px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.project-link {
  display: inline-block;
  padding: 6px 12px;
  background-color: #0078d7;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.project-link:hover {
  background-color: #005aab;
}

#projects .window-content {
  padding: 10px;
  height: calc(100% - 35px);
  box-sizing: border-box;
  overflow-y: scroll;
}

#welcome .welcome-content {
  padding: 10px;
  height: calc(100% - 35px);
  box-sizing: border-box;
  overflow-y: auto;
}

#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #3a3a3a;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-item:hover {
  background: #4a4a4a;
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 18px;
  color: #4ea1ff;
  min-width: 20px;
}

.contact-link {
  color: #4ea1ff;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

#email-text {
  font-family: monospace;
  font-size: 16px;
  color: #ddd;
}

#game-container {
  position: relative;
  width: 100%;
  height: 150px;
  background: linear-gradient(#f7f7f7, #eaeaea);
  border-bottom: 3px solid #888;
  overflow: hidden;
}

#dino {
  position: absolute;
  bottom: 0;
  left: 50px;
  width: 44px; 
  height: 47px;
  background: none; 
  border: none; 
  box-shadow: none;
}

#cactus {
  position: absolute;
  bottom: -3px;
  width: 25px;
  height: 50px;
  right: -50px;
  background: none;
  border: none;
  box-shadow: none;
  image-rendering: pixelated;
}

.jump {
  animation: jump 0.6s ease;
}

@keyframes jump {
  0% { bottom: 0px; }
  50% { bottom: 150px; }
  100% { bottom: 0px; }
}

#game-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: #888;
}

#game-container .dino-score {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #444;
  font: 700 14px/1 monospace;
  user-select: none;
}

#game-container .dino-over {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  text-align: center;
  font: 700 16px/1.4 system-ui, sans-serif;
  user-select: none;
}

.resume-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: calc(100% - 15px);
  padding: 10px;
  box-sizing: border-box;
}

.resume-pdf {
  width: 100%;           
  height: 390px;       
  border: 1px solid #ccc;
  margin-bottom: 0px;
}

.download-btn {
  display: inline-block;
  padding: 6px 12px;
  background: #0078d7;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.download-btn:hover {
  background: #005a9e;
}

/* Make windows scale on smaller screens */
@media (max-width: 768px) {
  .window {
    width: 90vw !important;
    height: 70vh !important;
    left: 5vw !important;
    top: 10vh !important;
  }
}

/* Even smaller screens (phones) */
@media (max-width: 480px) {
  .window {
    width: 95vw !important;
    height: 75vh !important;
    left: 2.5vw !important;
    top: 10vh !important;
  }

  .window-header {
    font-size: 14px;
  }

  .taskbar {
    height: 50px;
  }
}
