/* Style 2: alternate layout and palette (same structure as style.css) */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Tahoma, Verdana, sans-serif;
}

body {
  font-family: Tahoma, Verdana, sans-serif;
  line-height: 1.65;
  color: #2c2c2c;
  position: relative;
  padding-left: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("windows_xp/windows_Xp_walpaper.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* navbar: left sidebar, desktop-style icons, transparent */
nav {
  position: fixed;
  top: 0;
  left: 8px;
  bottom: 0;
  width: 80px;
  background: transparent;
  z-index: 100;
  padding: 16px 0;
}

nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav a,
nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #2c2c2c;
  font-weight: 600;
  padding: 6px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  width: 100%;
}

nav a:hover,
nav button:hover {
  color: #1a1a1a;
}

nav .nav-icon {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
}

nav .nav-label {
  font-size: 0.9rem;
  margin-top: 4px;
  text-align: center;
  max-width: 76px;
  line-height: 1.15;
  word-break: keep-all;
  text-shadow: 1px 1px 0 #ffffff;
}

/* content offset so it doesn't sit under left nav */
body {
  padding-left: 88px;
}

/* application window: XP-style frame, scroll inside */
.app-window {
  margin: 12px auto;
  max-width: 960px;
  height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  background: #ece9d8;
  border: 1px solid #0054e3;
  box-shadow: inset 1px 1px 0 #fff, 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.app-titlebar {
  flex-shrink: 0;
  height: 30px;
  background: linear-gradient(180deg, #0a246a 0%, #0054e3 6%, #2d7cf6 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding-left: 8px;
  border-bottom: 1px solid #003c9e;
}

.app-titlebar::before {
  content: attr(data-title);
}

.titlebar-btns {
  margin-left: auto;
  margin-right: 12px;
  display: flex;
  gap: 2px;
}

.tb-btn {
  width: 18px;
  height: 18px;
  background: #c0c0c0;
  border: 1px solid #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
  cursor: default;
}

.tb-btn:last-child {
  background: #c42b1c;
  border-color: #8b0000;
  color: #fff;
  cursor: pointer;
}

/* dock at bottom: same style as title bar */
.dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: linear-gradient(180deg, #0a246a 0%, #0054e3 6%, #2d7cf6 100%);
  border-top: 1px solid #003c9e;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 0 16px;
  z-index: 100;
}

.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock img {
  width: 34px;
  height: 34px;
}

.dock-start img {
  height: 34px;
  width: auto;
}

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  min-height: 0;
}

/* header: single column, image above text */
header {
  max-width: 950px;
  margin: 28px auto 20px;
  padding: 0 24px;
}

header section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  text-align: center;
}

header img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header h1 {
  font-size: 2rem;
  margin-bottom: 4px;
}

header p {
  font-size: 1.05rem;
  max-width: 100%;
  color: #444;
  margin-top: 4px;
}

header h1 + p {
  margin-bottom: 8px;
}

header section img {
  max-width: 320px;
  margin: 0 auto 16px;
}

/* divider */
hr {
  border: none;
  height: 2px;
  background-color: #c4b8a8;
  margin: 28px 24px;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

/* main: narrower, sections as panels */
main {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 24px;
}

main section {
  margin-bottom: 28px;
  padding: 24px;
  border: none;
  border-bottom: none;
  background-color: #fffefb;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

main h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #6b5344;
}

main p {
  max-width: 100%;
  font-size: 1rem;
  color: #444;
}

/* project layout: stack image above text on small feel, keep side-by-side but tighter */
.project-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

main .project-content > img {
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.project-links img {
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.project-text {
  flex: 1;
  width: 100%;
}

.project-text ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.project-text li {
  margin-bottom: 6px;
  font-size: 1rem;
  color: #444;
}

/* qualifications: two columns kept but narrower */
.qualifications-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.resume-column iframe {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skills-bubbles {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  gap: 8px;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 8px;
  gap: 6px;
}

.skill-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0d9cf;
  border-radius: 50%;
  cursor: default;
  transition: transform 0.2s ease, background-color 0.2s ease;
  text-align: center;
  margin: 0;
  color: #2c2c2c;
}

.skill-bubble.small {
  width: 64px;
  height: 64px;
  font-size: 0.7rem;
}

.skill-bubble.medium {
  width: 82px;
  height: 82px;
  font-size: 0.8rem;
}

.skill-bubble.large {
  width: 100px;
  height: 100px;
  font-size: 0.85rem;
}

.skill-bubble:hover {
  transform: scale(1.08);
  background-color: #c4b8a8;
  z-index: 2;
}

/* social icons */
.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 10px 0 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 4px;
  transition: opacity 0.2s ease;
}

.social-icons img {
  width: 32px;
  height: 32px;
  display: block;
}

.social-icons a:hover {
  opacity: 0.8;
}

header h1 + .social-icons {
  margin-top: 8px;
}

header .social-icons + p {
  margin-top: 6px;
}

/* service page image link */
.serviceImg {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.serviceClickNote {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #6b5344;
}
