/* ===================================
   Windows XP Portfolio - CSS
   ================================== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Tahoma", "Microsoft Sans Serif", Arial, sans-serif;
  font-size: 13px;
  overflow: hidden;
  height: 100vh;
  background: #5a7edb;
  color: #000;
}

/* ===================================
   Desktop Background
   ================================== */
.desktop {
  width: 100%;
  height: calc(100vh - 30px);
  background: linear-gradient(180deg, #5a7edb 0%, #3c5aa6 100%);
  position: relative;
  overflow: hidden;
  padding: 10px;
}

/* ===================================
   Desktop Icons
   ================================== */
.desktop-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  grid-gap: 20px;
  padding: 10px;
}

.desktop-icon {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  border: 1px solid transparent;
  user-select: none;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  border: 1px dotted #fff;
}

.desktop-icon:active {
  background: rgba(255, 255, 255, 0.3);
}

.icon-image {
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

.icon-image svg {
  width: 100%;
  height: 100%;
}

.icon-label {
  color: #fff;
  text-align: center;
  font-size: 11px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  line-height: 1.3;
  word-wrap: break-word;
}

/* ===================================
   Windows
   ================================== */
.window {
  position: absolute;
  background: #ece9d8;
  border: 3px solid;
  border-color: #f1ede2 #888c8f #888c8f #f1ede2;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  min-width: 400px;
  max-width: 90%;
  min-height: 300px;
  max-height: calc(100vh - 80px);
  display: none;
  flex-direction: column;
  z-index: 10;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease; /* ✅ Added here */
}

.window.active {
  display: flex;
  z-index: 100;
}

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100vh - 30px) !important;
  max-width: 100% !important;
  max-height: calc(100vh - 30px) !important;
}

/* Title Bar */
.title-bar {
  background: linear-gradient(
    180deg,
    #0997ff 0%,
    #0053ee 8%,
    #0050ee 40%,
    #06f 88%,
    #06f 93%,
    #005bff 95%,
    #003dd7 96%,
    #003dd7 100%
  );
  padding: 3px 5px 3px 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  user-select: none;
}

.title-bar-text {
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  padding-left: 5px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  flex: 1;
}

.title-bar-controls {
  display: flex;
  gap: 2px;
}

.title-bar-controls button {
  width: 21px;
  height: 21px;
  border: none;
  background: #ece9d8;
  cursor: pointer;
  position: relative;
  border: 1px solid;
  border-color: #fff #0a0a0a #0a0a0a #fff;
}

.title-bar-controls button:hover {
  background: #e3dfd6;
}

.title-bar-controls button:active {
  border-color: #0a0a0a #fff #fff #0a0a0a;
  background: #d4d0c8;
}

/* Minimize Button */
.minimize-btn::before {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 2px;
  background: #000;
}

/* Maximize Button */
.maximize-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border: 2px solid #000;
  border-bottom-width: 3px;
}

/* Close Button */
.close-btn {
  font-weight: bold;
  font-size: 14px;
}

.close-btn::before,
.close-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: #000;
}

.close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Window Body */
.window-body {
  flex: 1;
  background: #fff;
  border: 2px solid;
  border-color: #888c8f #f1ede2 #f1ede2 #888c8f;
  margin: 2px;
  overflow-y: auto;
  overflow-x: hidden;
}

.content-section {
  padding: 20px;
}

.content-section h2 {
  font-size: 16px;
  color: #003c74;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #0055d4;
}

.content-section h3 {
  font-size: 13px;
  color: #000;
  margin: 15px 0 10px 0;
}

.content-section p {
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 13px;
}

/* ===================================
   About Me Section
   ================================== */
.profile-section {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.profile-image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border: 3px solid;
  border-color: #f1ede2 #888c8f #888c8f #f1ede2;
  background: #fff;
  padding: 5px;
}

.profile-image svg {
  width: 100%;
  height: 100%;
}

.profile-info {
  flex: 1;
}

.job-title {
  color: #0055d4;
  font-weight: bold;
  margin-bottom: 10px;
}

.bio {
  margin-bottom: 12px;
}

/* ===================================
   Skills Section
   ================================== */
.skill-category {
  margin-bottom: 25px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.skill-badge {
  background: linear-gradient(180deg, #ece9d8 0%, #d4d0c8 100%);
  border: 2px solid;
  border-color: #fff #888c8f #888c8f #fff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.skill-badge:hover {
  background: linear-gradient(180deg, #f5f4f0 0%, #dbd8d0 100%);
  transform: translateY(-1px);
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Projects Section
   ================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.project-card {
  background: #f7f7f7;
  border: 2px solid;
  border-color: #f1ede2 #888c8f #888c8f #f1ede2;
  padding: 15px;
}

.project-header h3 {
  margin: 0 0 10px 0;
  color: #003c74;
}

.project-description {
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  background: #0055d4;
  color: #fff;
  padding: 3px 8px;
  font-size: 10px;
  border: 1px solid;
  border-color: #0066ff #003388 #003388 #0066ff;
}

.project-links {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.project-links a {
  text-decoration: none;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.button-icon {
  font-size: 14px;
}

/* ===================================
   Contact Section
   ================================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: #0055d4;
  border: 2px solid;
  border-color: #f1ede2 #003388 #003388 #f1ede2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-details h3 {
  margin: 0 0 5px 0;
  font-size: 12px;
}

.contact-details p {
  margin: 0;
  color: #333;
}

.social-links {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}

.social-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.resume-download {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}

.resume-download p {
  margin-bottom: 12px;
  color: #666;
}

.download-resume-btn {
  background: linear-gradient(180deg, #ffd700 0%, #ffb300 100%);
  border: 2px solid;
  border-color: #ffe74d #cc8800 #cc8800 #ffe74d;
  font-weight: bold;
  padding: 8px 20px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.download-resume-btn:hover {
  background: linear-gradient(180deg, #ffe74d 0%, #ffc933 100%);
}

.download-resume-btn:active {
  border-color: #cc8800 #ffe74d #ffe74d #cc8800;
}

.xp-button {
  background: linear-gradient(180deg, #ece9d8 0%, #d4d0c8 100%);
  border: 1px solid;
  border-color: #fff #0a0a0a #0a0a0a #fff;
  padding: 5px 15px;
  font-family: "Tahoma", sans-serif;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.xp-button:hover {
  background: linear-gradient(180deg, #f5f4f0 0%, #dbd8d0 100%);
}

.xp-button:active {
  border-color: #0a0a0a #fff #fff #0a0a0a;
  background: #d4d0c8;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Taskbar
   ================================== */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(
    180deg,
    #1f53c5 0%,
    #2d6ae4 9%,
    #2d6ae4 18%,
    #1f53c5 92%,
    #1941a5 100%
  );
  border-top: 2px solid #1941a5;
  display: flex;
  align-items: center;
  padding: 2px 4px;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.start-button {
  height: 26px;
  background: linear-gradient(
    180deg,
    #6edb6e 0%,
    #3ac23a 9%,
    #3ac23a 18%,
    #28a028 92%,
    #1d7a1d 100%
  );
  border: 1px solid;
  border-color: #7aef7a #1d7a1d #1d7a1d #7aef7a;
  border-radius: 3px;
  padding: 0 8px 0 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  font-size: 11px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin-right: 5px;
}

.start-button:hover {
  background: linear-gradient(
    180deg,
    #7ef07e 0%,
    #48d048 9%,
    #48d048 18%,
    #30b030 92%,
    #208820 100%
  );
}

.start-button:active {
  border-color: #1d7a1d #7aef7a #7aef7a #1d7a1d;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.windows-logo {
  width: 20px;
  height: 20px;
}

.taskbar-items {
  flex: 1;
  display: flex;
  gap: 3px;
  overflow-x: auto;
  overflow-y: hidden;
}

.taskbar-item {
  height: 24px;
  min-width: 120px;
  max-width: 180px;
  background: linear-gradient(180deg, #3d88f5 0%, #245edb 100%);
  border: 1px solid;
  border-color: #5c9cff #1941a5 #1941a5 #5c9cff;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskbar-item:hover {
  background: linear-gradient(180deg, #4d98ff 0%, #3468eb 100%);
}

.taskbar-item:active,
.taskbar-item.active {
  border-color: #1941a5 #5c9cff #5c9cff #1941a5;
  background: linear-gradient(180deg, #2d6ae4 0%, #1f53c5 100%);
}

.system-tray {
  height: 26px;
  background: #0d368d;
  border: 1px solid;
  border-color: #1941a5 #082157 #082157 #1941a5;
  margin-left: 5px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tray-time {
  color: #fff;
  font-size: 11px;
  font-weight: normal;
}

/* ===================================
   Start Menu
   ================================== */
.start-menu {
  position: fixed;
  bottom: 30px;
  left: 0;
  width: 300px;
  background: #fff;
  border: 3px solid;
  border-color: #f1ede2 #0a0a0a #0a0a0a #f1ede2;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  z-index: 2000;
}

.start-menu.active {
  display: flex;
}

.start-menu-header {
  background: linear-gradient(90deg, #2d6ae4 0%, #1f53c5 100%);
  padding: 15px;
  color: #fff;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #0055d4;
  font-size: 18px;
}

.user-name {
  font-weight: bold;
  font-size: 13px;
}

.start-menu-items {
  padding: 5px 0;
  background: #fff;
  flex: 1;
}

.start-menu-item {
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px 15px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Tahoma", sans-serif;
  font-size: 11px;
  transition: background 0.1s;
}

.start-menu-item:hover {
  background: #316ac5;
  color: #fff;
}

.menu-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
}

.start-menu-footer {
  border-top: 1px solid #ccc;
  background: #d4d0c8;
  padding: 5px 0;
}

/* ===================================
   Scrollbar (Windows XP Style)
   ================================== */
.window-body::-webkit-scrollbar {
  width: 16px;
}

.window-body::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.window-body::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ece9d8 0%, #d4d0c8 100%);
  border: 1px solid;
  border-color: #fff #0a0a0a #0a0a0a #fff;
}

.window-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #f5f4f0 0%, #dbd8d0 100%);
}

.window-body::-webkit-scrollbar-button {
  height: 16px;
  background: linear-gradient(180deg, #ece9d8 0%, #d4d0c8 100%);
  border: 1px solid;
  border-color: #fff #0a0a0a #0a0a0a #fff;
}

.window-body::-webkit-scrollbar-button:hover {
  background: linear-gradient(180deg, #f5f4f0 0%, #dbd8d0 100%);
}

/* ===================================
   Responsive Design
   ================================== */
@media (max-width: 768px) {
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .desktop-icons {
    display: none;
  }

  .window {
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    top: 30px !important;
    left: 0 !important;
    max-width: 100% !important;
    min-width: 300px;
  }

  .profile-section {
    flex-direction: column;
  }

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

  .start-menu {
    width: 250px;
  }

  .content-section {
    padding: 15px;
  }

  .title-bar {
    cursor: default;
  }
}

@media (max-width: 480px) {
  .desktop-icons {
    grid-template-columns: repeat(3, 60px);
    grid-gap: 10px;
  }

  .desktop-icon {
    width: 60px;
  }

  .icon-image {
    width: 32px;
    height: 32px;
  }

  .icon-label {
    font-size: 10px;
  }

  .window {
    min-width: 280px;
  }

  .content-section {
    padding: 10px;
  }

  .taskbar-item {
    min-width: 80px;
    max-width: 120px;
    font-size: 10px;
  }
}

/* ===================================
   Utility Classes
   ================================== */
.hidden {
  display: none !important;
}

.no-select {
  user-select: none;
}

/* Prevent text selection during drag */
body.dragging {
  user-select: none;
  cursor: move;
}

.menu-separator {
  height: 1px;
  background: #ccc;
  margin: 5px 0;
}

/* ===================================
   Terminal / Command Prompt Window
   ================================== */
.terminal-window .window-body {
  background: #000;
  padding: 10px;
  font-family: "Consolas", "Courier New", monospace;
  color: #c0c0c0;
}

.terminal-body {
  display: flex;
  flex-direction: column;
  height: 400px;
}

#terminal-output {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
}

.terminal-line {
  margin: 2px 0;
  font-size: 12px;
  line-height: 1.4;
}

.terminal-line.command {
  color: #fff;
}

.terminal-line.success {
  color: #00ff00;
}

.terminal-line.error {
  color: #ff5555;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 5px;
}

.terminal-prompt {
  color: #fff;
  font-size: 12px;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 12px;
  outline: none;
  caret-color: #fff;
}

.terminal-input::selection {
  background: #fff;
  color: #000;
}

/* ===================================
   Minesweeper Game
   ================================== */
.minesweeper-window .window-body {
  background: #c0c0c0;
  padding: 5px;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-header {
  width: 100%;
  background: #c0c0c0;
  border: 3px solid;
  border-color: #fff #808080 #808080 #fff;
  padding: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.game-counter {
  background: #000;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  padding: 2px 4px;
}

.counter-display {
  font-family: "Courier New", monospace;
  font-size: 20px;
  font-weight: bold;
  color: #ff0000;
  letter-spacing: 2px;
}

.game-reset {
  width: 36px;
  height: 36px;
  background: #c0c0c0;
  border: 3px solid;
  border-color: #fff #808080 #808080 #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-reset:active {
  border-color: #808080 #fff #fff #808080;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(9, 30px);
  grid-template-rows: repeat(9, 30px);
  gap: 0;
  border: 3px solid;
  border-color: #808080 #fff #fff #808080;
  background: #c0c0c0;
}

.cell {
  width: 30px;
  height: 30px;
  background: #c0c0c0;
  border: 3px solid;
  border-color: #fff #808080 #808080 #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  user-select: none;
}

.cell:active {
  border-color: #808080 #fff #fff #808080;
}

.cell.revealed {
  background: #c0c0c0;
  border: 1px solid #808080;
}

.cell.flagged::before {
  content: "🚩";
  font-size: 16px;
}

.cell.mine::before {
  content: "💣";
  font-size: 16px;
}

.cell.num-1 {
  color: #0000ff;
}
.cell.num-2 {
  color: #008000;
}
.cell.num-3 {
  color: #ff0000;
}
.cell.num-4 {
  color: #000080;
}
.cell.num-5 {
  color: #800000;
}
.cell.num-6 {
  color: #008080;
}
.cell.num-7 {
  color: #000;
}
.cell.num-8 {
  color: #808080;
}

.game-info {
  margin-top: 10px;
  text-align: center;
}

.game-info p {
  font-size: 10px;
  color: #000;
  margin: 5px 0;
}

/* ===================================
   Clippy Assistant
   ================================== */
.clippy-container {
  position: fixed;
  bottom: 50px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  animation: clippy-entrance 0.5s ease-out;
}

.clippy-container.hidden {
  display: none;
}

@keyframes clippy-entrance {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.clippy-character {
  font-size: 80px;
  animation: clippy-bounce 2s ease-in-out infinite;
}

@keyframes clippy-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.clippy-bubble {
  background: #ffffc8;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 12px;
  max-width: 250px;
  position: relative;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.clippy-bubble::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: -10px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 10px 10px 0;
  border-color: transparent #000 transparent transparent;
}

.clippy-bubble::before {
  content: "";
  position: absolute;
  bottom: 11px;
  left: -7px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 9px 9px 0;
  border-color: transparent #ffffc8 transparent transparent;
}

.clippy-close {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff0000;
  color: #fff;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
}

.clippy-close:hover {
  background: #cc0000;
}

#clippy-text {
  margin: 0 0 10px 0;
  font-size: 11px;
  line-height: 1.4;
}

.clippy-tips {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.clippy-tip-btn {
  background: #e0e0e0;
  border: 1px solid #999;
  padding: 5px 10px;
  font-size: 10px;
  cursor: pointer;
  text-align: left;
  border-radius: 3px;
}

.clippy-tip-btn:hover {
  background: #d0d0d0;
}

/* ===================================
   Achievement Notification
   ================================== */
.achievement-notification {
  position: fixed;
  top: 60px;
  right: -400px;
  background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
  border: 2px solid #4a4a4a;
  border-radius: 5px;
  padding: 15px;
  display: flex;
  gap: 15px;
  align-items: center;
  z-index: 9998;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  min-width: 300px;
  transition: right 0.5s ease-out;
}

.achievement-notification.show {
  right: 20px;
}

.achievement-icon {
  font-size: 40px;
  animation: achievement-pulse 0.5s ease-in-out;
}

@keyframes achievement-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.achievement-content {
  flex: 1;
}

.achievement-title {
  color: #ffd700;
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 5px;
}

.achievement-description {
  color: #fff;
  font-size: 11px;
}

/* ===================================
   Loading Screen
   ================================== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.xp-logo {
  margin-bottom: 40px;
}

.xp-logo-text {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 36px;
  color: #fff;
  font-style: italic;
  margin-bottom: 5px;
}

.xp-logo-subtext {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 48px;
  color: #fff;
  font-weight: bold;
}

.xp-tm {
  font-size: 24px;
  vertical-align: super;
}

.loading-bar-container {
  width: 300px;
  margin: 0 auto 20px;
}

.loading-bar {
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0066ff 0%, #00ccff 100%);
  animation: loading-progress 2s ease-in-out;
  width: 100%;
}

@keyframes loading-progress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.loading-text {
  color: #fff;
  font-size: 12px;
  font-family: Tahoma, sans-serif;
}
/* ===================================
   BROWSER-STYLE PROJECTS SECTION
   ================================== */

/* Browser Window Container */
.browser-window {
  padding: 0 !important;
  background: #f9f9f9 !important;
}

/* Browser Toolbar */
.browser-toolbar {
  background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 100%);
  border-bottom: 1px solid #999;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Internet Explorer Classic Style */
.browser-toolbar {
  background: linear-gradient(180deg, #f1f1f1 0%, #d8d8d8 100%);
  border-bottom: 2px solid #808080;
  box-shadow: inset 0 1px 0 #ffffff;
}

.ie-logo {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background: linear-gradient(135deg, #4d4d4d 0%, #1a1a1a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-style: italic;
  font-size: 14px;
  font-family: "Times New Roman", serif;
}

.ie-toolbar-section {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-right: 1px solid #c0c0c0;
}

.ie-toolbar-label {
  font-size: 11px;
  color: #000;
  margin-right: 8px;
}

.browser-nav-buttons {
  display: flex;
  gap: 5px;
}

.nav-btn {
  width: 28px;
  height: 28px;
  background: linear-gradient(180deg, #f5f5f5 0%, #e0e0e0 100%);
  border: 1px solid #999;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 100%);
}

.nav-btn:active {
  background: #d0d0d0;
}

.browser-url-bar {
  flex: 1;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.url-lock {
  font-size: 12px;
}

.url-text {
  color: #333;
  font-family: "Consolas", "Courier New", monospace;
}

.menu-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #666;
}

.menu-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

/* Browser Tabs */
.browser-tabs {
  background: #d0d0d0;
  display: flex;
  gap: 2px;
  padding: 4px 4px 0 4px;
  border-bottom: 1px solid #999;
}

.browser-tab {
  background: #b0b0b0;
  border: 1px solid #888;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 11px;
  color: #333;
}

.browser-tab.active {
  background: #f9f9f9;
  border-color: #999;
  position: relative;
}

.browser-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #f9f9f9;
}

.tab-icon {
  font-size: 12px;
}

.tab-title {
  font-weight: normal;
}

/* Browser Content Area */
.browser-content {
  padding: 20px;
  background: #fff;
  min-height: 400px;
}

.content-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.youtube-style-title {
  font-size: 20px;
  color: #111;
  margin: 0 0 5px 0;
  font-weight: 500;
}

.channel-info {
  font-size: 12px;
  color: #606060;
  margin: 0;
}

/* YouTube-Style Grid */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* YouTube Card */
.youtube-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.youtube-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.youtube-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.youtube-card:hover .video-title {
  color: #065fd4;
}

.youtube-card:hover .thumbnail-image {
  transform: scale(1.05);
}

.thumbnail-image {
  transition: transform 0.3s ease;
}

.youtube-card {
  cursor: pointer;
  position: relative;
}

.youtube-card::after {
  content: "Click to view details";
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.youtube-card:hover::after {
  opacity: 1;
}

/* Thumbnail */
.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.thumbnail-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-icon {
  font-size: 60px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.thumbnail-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
}

/* Video Info */
.video-info {
  padding: 12px;
}

.video-title {
  font-size: 14px;
  font-weight: 600;
  color: #030303;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  font-size: 12px;
  color: #606060;
  margin-bottom: 8px;
}

.channel-name {
  font-weight: 500;
}

.meta-separator {
  margin: 0 4px;
}

.video-description {
  font-size: 11px;
  color: #606060;
  line-height: 1.5;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tech Stack Tags */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.tech-tag {
  background: #f0f0f0;
  color: #333;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
}

/* Action Buttons */
.video-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.action-btn {
  flex: 1;
  background: #f9f9f9;
  border: 1px solid #d0d0d0;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: #e8e8e8;
  border-color: #999;
}

.btn-icon {
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .youtube-grid {
    grid-template-columns: 1fr;
  }

  .browser-toolbar {
    padding: 6px 8px;
  }

  .browser-url-bar {
    font-size: 10px;
  }
}
/* ===================================
   PROJECT VIEW - YOUTUBE STYLE
   ================================== */

/* Project View Window Specific */
.project-view-window {
  min-width: 900px;
  width: 95%;
  max-width: 1400px;
}

.project-view-window .window-body {
  padding: 0 !important;
  background: #f9f9f9 !important;
}

.project-view-body {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

/* Main Container - Two Column Layout */
.project-view-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
  padding: 20px;
  background: #fff;
}

/* Left Column - Main Content */
.project-preview-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Preview Image (Like YouTube Video Player) */
.project-preview-wrapper {
  width: 100%;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.project-preview-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: contain;
  background: #fff; /* White background behind image */
}

/* Add this - shows message if image fails to load */
.project-preview-img[src=""],
.project-preview-img:not([src]) {
  min-height: 300px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-preview-img[src=""]::before {
  content: "Preview image not available";
  color: #666;
  font-size: 14px;
}

/* Project Title */
.project-view-heading {
  font-size: 20px;
  font-weight: 600;
  color: #030303;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

/* Action Buttons Row */
.project-view-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 15px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.project-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: "Tahoma", sans-serif;
}

.demo-btn {
  background: #065fd4;
  color: #fff;
}

.demo-btn:hover {
  background: #0553c2;
}

.github-btn {
  background: #24292e;
  color: #fff;
}

.github-btn:hover {
  background: #1b1f23;
}

.back-btn {
  background: #f0f0f0;
  color: #333;
}

.back-btn:hover {
  background: #e0e0e0;
}

.action-icon {
  font-size: 16px;
}

/* Description Section */
.project-description-section,
.project-features-section {
  padding: 20px 0;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #030303;
  margin: 0 0 12px 0;
}

.project-description-text {
  font-size: 13px;
  line-height: 1.8;
  color: #030303;
  margin: 0;
}

/* Features List */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  padding: 12px 0;
  padding-left: 35px;
  position: relative;
  font-size: 13px;
  line-height: 1.8;
  color: #030303;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.features-list li:hover {
  background: #f9f9f9;
  padding-left: 40px;
}

.features-list li:before {
  content: "✓";
  position: absolute;
  left: 8px;
  top: 12px;
  color: #fff;
  background: #065fd4;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

.features-list li:last-child {
  border-bottom: none;
}

/* Right Column - Sidebar */
.project-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 600;
  color: #030303;
  margin: 0 0 12px 0;
}

/* Tech Badges */
.tech-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badges-list .tech-badge {
  background: #f0f0f0;
  color: #333;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  white-space: nowrap;
}

/* Project Stats */
.project-stats {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  color: #606060;
  font-weight: 500;
}

.stat-value {
  color: #030303;
  font-weight: 600;
}

/* Related Projects */
.related-projects {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

.related-project-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.related-project-item:hover {
  background: #f0f0f0;
}

.related-thumb {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e0e0;
  border-radius: 4px;
}

.related-info {
  flex: 1;
}

.related-title {
  font-size: 12px;
  font-weight: 600;
  color: #030303;
  margin: 0 0 4px 0;
}

.related-meta {
  font-size: 11px;
  color: #606060;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .project-view-container {
    grid-template-columns: 1fr;
  }

  .project-sidebar-column {
    order: -1;
  }

  .project-view-window {
    min-width: 95%;
  }
}

@media (max-width: 768px) {
  .project-view-actions {
    flex-direction: column;
  }

  .project-action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================
   ENHANCED BROWSER STYLES
   ================================== */

/* Make URL bar interactive */
.url-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 11px;
  color: #333;
  outline: none;
  padding: 0;
}

.url-go-btn {
  background: #f0f0f0;
  border: 1px solid #ccc;
  padding: 4px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 10px;
  margin-left: 8px;
}

.url-go-btn:hover {
  background: #e0e0e0;
}

/* Navigation buttons states */
.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Loading Indicator */
.browser-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f0f0f0;
  border-top: 4px solid #065fd4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Browser Content Wrapper */
#browser-content {
  position: relative;
  min-height: 400px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .browser-toolbar {
    flex-wrap: wrap;
    padding: 6px;
  }

  .browser-url-bar {
    order: 3;
    width: 100%;
    margin-top: 8px;
  }

  .url-input {
    font-size: 10px;
  }

  .browser-nav-buttons {
    flex: 1;
  }
}

/* Page Transition */
.browser-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===================================
   INTERNET EXPLORER STATUS BAR
   ================================== */
.ie-status-bar {
  background: linear-gradient(180deg, #f1f1f1 0%, #d8d8d8 100%);
  border-top: 1px solid #fff;
  border-bottom: 1px solid #808080;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  font-family: "Tahoma", sans-serif;
  box-shadow: inset 0 1px 0 #ffffff;
}

.status-section {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-right: 1px solid #c0c0c0;
}

.status-section:last-child {
  border-right: none;
  margin-left: auto;
}

.status-icon {
  font-size: 12px;
}

.status-text {
  color: #000;
  font-size: 11px;
}

.status-zone {
  background: #fff;
  border: 1px solid #808080;
  padding: 2px 10px;
}
/* Mobile Warning Banner */
.mobile-warning-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  text-align: center;
  z-index: 999999;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
/* Mobile: Hide status bar */
@media (max-width: 768px) {
  .ie-status-bar {
    display: none;
  }
}
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}
/* Mobile Bottom Navigation */
.mobile-nav {
  display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #1f53c5 0%, #1941a5 100%);
    z-index: 9999;
    padding: 8px 0;
    justify-content: space-around;
  }

  .mobile-nav-btn {
    background: none;
    border: none;
    color: white;
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
  }

  .mobile-nav-btn span:first-child {
    font-size: 20px;
  }
}
