/* Desktop background with XP Bliss */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Tahoma, Verdana, Segoe UI, sans-serif;
  background: url("media/Background.webp") center center fixed no-repeat;
  background-size: cover;
  color: #111111;
}

/* Slight dark overlay for readability */
.desktop {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
  position: relative;
}

/* XP window */

.window {
  width: 100%;
  max-width: 1120px;
  border-radius: 6px;
  border: 1px solid #003399;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  background: #ece9d8;
  animation: windowDrop 0.5s ease-out;
}

/* Title bar */

.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: linear-gradient(90deg, #0a5fd3, #3b82f6);
  color: white;
}

.title-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #22c55e 40%, #15803d);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.7);
}

/* doubled name size */
.title-text {
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
}

/* XP buttons */

.title-buttons {
  display: flex;
  gap: 4px;
}

.btn {
  width: 22px;
  height: 20px;
  border: 1px solid #003b8e;
  background: linear-gradient(180deg, #ffffff, #d4d0c8);
  font-size: 14px;
  font-weight: bold;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 1px 1px 0 #ffffff;
  cursor: default;
  user-select: none;
}

.btn:hover {
  background: linear-gradient(180deg, #e5e5e5, #c8c8c8);
}

.btn-close {
  background: linear-gradient(180deg, #ff7777, #c70000);
  border-color: #6d0000;
  color: #ffffff;
}

.btn-close:hover {
  background: linear-gradient(180deg, #ff9999, #d00000);
}

/* XP style hover for menu bar */
.menu-bar {
  display: flex;
  gap: 16px;
  padding: 4px 10px;
  background: #d4d0c8;
  border-bottom: 1px solid #ffffff;
  font-size: 12px;
  user-select: none;
}

.menu-item {
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: default;
}

/* Hover like Windows XP */
.menu-item:hover {
  background: #0a67d1;
  border: 1px solid #083d7c;
  color: #ffffff;
  box-shadow: inset 0 0 1px #ffffff;
}

/* Click (active) effect */
.menu-item:active {
  background: #084c99;
  border: 1px solid #062f55;
  color: #e6e6e6;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.4);
}


/* Menu bar */

.menu-bar {
  display: flex;
  gap: 16px;
  padding: 4px 10px;
  background: #d4d0c8;
  border-bottom: 1px solid #ffffff;
  font-size: 12px;
}

.menu-item {
  cursor: default;
}

/* Window body */

.window-body {
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
}

/* Columns */

.columns {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 12px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Panels */

.panel {
  border: 1px solid #b8b4ac;
  background: #111111;
  padding: 10px 12px;
  color: #f5f5f5;
}

.panel h2 {
  margin: 0 0 6px;
  font-size: 13px;
  color: #ffffff;
}

/* Text styles */

p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.4;
}

ul {
  margin: 4px 0 4px;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.35;
}

/* Jobs */

.job {
  margin-bottom: 10px;
}

.job h3 {
  margin: 0 0 2px;
  font-size: 13px;
  color: #f9fafb;
}

.job-meta {
  margin: 0 0 4px;
  font-size: 11px;
  color: #9ca3af;
}

.job-subtitle {
  margin-top: 6px;
  font-weight: bold;
}

/* Skills */

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skills-grid h3 {
  margin: 0 0 2px;
  font-size: 12px;
}

/* Simple lists */

.simple-list {
  list-style: square;
}

/* Certification icons */

.cert-list {
  list-style: none;
  padding-left: 0;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cert-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: auto;
}


/* Status bar */

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #d4d0c8;
  border-top: 1px solid #ffffff;
  padding: 2px 6px;
  font-size: 11px;
}

.status-left {
  padding: 2px 6px;
  border: 1px inset #ffffff;
  background: #f5f4ea;
}

/* Cloud Hosting Panel */

.cloud-panel {
  background: #111111;
  border: 1px solid #b8b4ac;
  color: #ffffff;
}

.cloud-panel h2 {
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 6px;
}

.cloud-panel p {
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.cloud-list {
  list-style: square;
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.4;
}

.cloud-list li {
  margin-bottom: 4px;
}


/* doubled visitors size */
.status-right {
  padding: 2px 6px;
  border: 1px inset #ffffff;
  background: #f5f4ea;
  font-size: 20px;
  font-weight: bold;
}

#counter {
  color: #006600;
  font-size: 22px;
  margin-left: 4px;
  animation: pulse 1.8s ease-in-out infinite;
}

/* Clippy */

.clippy {
  position: fixed;
  right: 16px;
  bottom: 64px;
  pointer-events: none;
  z-index: 50;
}

.clippy img {
  width: 120px;
  height: auto;
}

/* Phones only (screen width 600px or less) */
@media only screen and (max-width: 600px) {
    .clippy {
        bottom: 48px !important; /* move it up 48px */
    }
}

/* Animations */

@keyframes windowDrop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Contact panel XP styling */

.contact-panel {
  background: #111111;
  border: 1px solid #b8b4ac;
}

.contact-panel h2 {
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 6px;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.contact-list li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-list a {
  color: #38bdf8; /* XP blue link */
  text-decoration: underline;
}

.contact-list a:hover {
  color: #60a5fa;
}

/* Responsive */

@media (max-width: 920px) {
  .columns {
    grid-template-columns: 1fr;
  }

  .title-text {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .desktop {
    padding: 12px;
  }

  .window {
    font-size: 12px;
  }

  .panel {
    padding: 8px 9px;
  }

  .title-text {
    font-size: 16px;
  }

  .clippy img {
    width: 90px;
  }

  .status-right {
    font-size: 16px;
  }

  #counter {
    font-size: 18px;
  }
}
