/* ========================================
   MALIK STEVENSON - AOL 90s RESUME
   Windows 95 + America Online Aesthetic
   ======================================== */

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --win95-bg: #008080;
  --win95-gray: #c0c0c0;
  --win95-dark: #808080;
  --win95-light: #dfdfdf;
  --win95-white: #ffffff;
  --win95-black: #000000;
  --win95-blue: #000080;
  --win95-titlebar: linear-gradient(90deg, #000080, #1084d0);
  --aol-blue: #003399;
  --aol-light-blue: #6699cc;
  --aol-yellow: #ffcc00;
  --aol-toolbar-bg: #d4d0c8;
  --shadow-out: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px grey, inset 2px 2px #dfdfdf;
  --shadow-in: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px grey;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  cursor: default;
}

.hidden { display: none !important; }

/* ========================================
   DIAL-UP LOADING SCREEN
   ======================================== */
#dialup-screen {
  position: fixed;
  inset: 0;
  background: var(--win95-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: crtFlicker 0.15s infinite alternate;
}

@keyframes crtFlicker {
  0% { opacity: 0.97; }
  100% { opacity: 1; }
}

.dialup-window {
  background: var(--win95-gray);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: 1px 1px 0 #000;
  width: 460px;
}

.dialup-body {
  padding: 20px 30px;
  text-align: center;
}

.aol-logo-area {
  margin-bottom: 20px;
}

.aol-triangle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.aol-text-america {
  font-size: 14px;
  letter-spacing: 6px;
  font-weight: bold;
  color: var(--aol-blue);
}

.aol-text-online {
  font-size: 36px;
  font-family: 'Georgia', serif;
  font-style: italic;
  color: var(--aol-blue);
  font-weight: bold;
}

.connection-figures {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.figure-box {
  width: 80px;
  height: 70px;
  background: #d8d8f0;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  opacity: 0.4;
  transition: opacity 0.5s, transform 0.3s;
}

.figure-box.active {
  opacity: 1;
  transform: scale(1.05);
}

.connection-status {
  font-size: 14px;
  color: #333;
  margin: 10px 0;
  font-weight: bold;
}

.progress-bar-container {
  width: 100%;
  height: 20px;
  background: #fff;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  margin: 10px 0;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #000080, #0066cc, #000080);
  transition: width 0.3s;
}

.cancel-btn {
  padding: 4px 30px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  font-size: 13px;
  cursor: pointer;
  margin-top: 5px;
}

.cancel-btn:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

/* ========================================
   WIN95 TITLEBAR (shared)
   ======================================== */
.win95-titlebar {
  background: var(--win95-titlebar);
  color: white;
  padding: 3px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: bold;
  cursor: grab;
  user-select: none;
}

.win95-titlebar:active { cursor: grabbing; }

.titlebar-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.titlebar-buttons {
  display: flex;
  gap: 2px;
}

.tb-btn {
  width: 16px;
  height: 14px;
  background: var(--win95-gray);
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #000;
}

.tb-btn:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

/* ========================================
   TASKBAR
   ======================================== */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--win95-gray);
  border-top: 2px solid #ffffff;
  display: flex;
  align-items: center;
  padding: 0 4px;
  z-index: 9000;
  gap: 4px;
}

.start-btn {
  padding: 2px 8px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
}

.start-btn:active, .start-btn.active {
  border-color: #808080 #ffffff #ffffff #808080;
}

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

.taskbar-divider {
  width: 2px;
  height: 20px;
  border-left: 1px solid #808080;
  border-right: 1px solid #ffffff;
  margin: 0 2px;
}

.taskbar-items {
  display: flex;
  flex: 1;
  gap: 2px;
  overflow: hidden;
}

.taskbar-item {
  padding: 2px 8px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 22px;
  display: flex;
  align-items: center;
}

.taskbar-item.active {
  border-color: #808080 #ffffff #ffffff #808080;
  background: #b8b8b8;
}

.taskbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 0 8px;
  height: 22px;
}

.systray-icon {
  font-size: 12px;
  cursor: pointer;
}

.taskbar-clock {
  font-size: 11px;
  color: #000;
}

/* ========================================
   START MENU
   ======================================== */
.start-menu {
  position: fixed;
  bottom: 32px;
  left: 0;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  display: flex;
  z-index: 9500;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  min-width: 200px;
}

.start-menu-sidebar {
  width: 28px;
  background: linear-gradient(180deg, #000080, #1084d0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.sidebar-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: white;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1px;
}

.start-menu-items {
  padding: 4px 0;
  flex: 1;
}

.start-menu-item {
  padding: 6px 24px 6px 8px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.start-menu-item:hover {
  background: #000080;
  color: white;
}

.start-menu-divider {
  height: 1px;
  background: #808080;
  margin: 4px 4px;
  border-bottom: 1px solid #ffffff;
}

/* ========================================
   AOL TOOLBAR
   ======================================== */
.aol-toolbar {
  background: var(--aol-toolbar-bg);
  border-bottom: 2px solid #808080;
}

.aol-toolbar-top {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  gap: 8px;
  border-bottom: 1px solid #a0a0a0;
}

.aol-logo-small {
  background: linear-gradient(135deg, #003399, #0066cc);
  color: white;
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: bold;
}

.aol-mini-text {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
}

.toolbar-buttons {
  display: flex;
  gap: 2px;
}

.toolbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 10px;
  gap: 2px;
}

.toolbar-btn:hover {
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  background: #d8d8d8;
}

.toolbar-btn:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

.tb-icon { font-size: 18px; }
.tb-label { font-size: 10px; color: #333; }

.aol-toolbar-address {
  display: flex;
  align-items: center;
  padding: 3px 8px;
  gap: 4px;
  background: #e8e8e0;
}

.address-label {
  font-size: 11px;
  font-weight: bold;
  color: #333;
}

.address-input {
  flex: 1;
  padding: 2px 6px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  font-size: 12px;
  background: white;
}

.go-btn {
  padding: 2px 12px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.welcome-banner {
  background: linear-gradient(90deg, #003399, #0055aa);
  color: white;
  padding: 3px 12px;
  font-size: 11px;
}

.welcome-banner strong {
  color: var(--aol-yellow);
}

/* ========================================
   DESKTOP AREA
   ======================================== */
.desktop-area {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 32px;
  background: var(--win95-bg);
  padding-top: 90px;
  overflow: hidden;
}

/* Desktop Icons */
.desktop-icons {
  position: absolute;
  top: 100px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 75px;
  padding: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.desktop-icon:hover {
  background: rgba(0, 0, 128, 0.3);
  border: 1px dotted #ffffff;
}

.desktop-icon .icon-img {
  font-size: 32px;
  margin-bottom: 2px;
}

.desktop-icon .icon-label {
  font-size: 11px;
  color: white;
  text-shadow: 1px 1px 2px #000;
  word-wrap: break-word;
}

/* ========================================
   WIN95 WINDOWS
   ======================================== */
.win95-window {
  position: absolute;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  z-index: 100;
  min-width: 300px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.win95-window.focused {
  z-index: 500;
}

.win95-window .win95-titlebar {
  flex-shrink: 0;
}

.win95-menu-bar {
  display: flex;
  gap: 0;
  padding: 2px 4px;
  background: var(--win95-gray);
  border-bottom: 1px solid #808080;
  flex-shrink: 0;
}

.win95-menu-bar span {
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
}

.win95-menu-bar span:hover {
  background: #000080;
  color: white;
}

.win95-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  background: #ffffff;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  margin: 2px;
}

/* ========================================
   ABOUT / WELCOME SECTION
   ======================================== */
.retro-title {
  font-size: 20px;
  color: var(--aol-blue);
  margin-bottom: 16px;
  font-family: 'Georgia', serif;
}

.aol-card {
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background: #f0f0ff;
  padding: 16px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #003399, #0066cc);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
}

.profile-info h2 {
  font-size: 18px;
  color: #000;
}

.subtitle {
  font-size: 13px;
  color: var(--aol-blue);
  font-weight: bold;
}

.subtitle-small {
  font-size: 11px;
  color: #666;
}

.profile-summary {
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  margin: 12px 0;
  padding: 8px;
  background: white;
  border: 1px solid #ccc;
}

.marquee-container {
  margin-top: 8px;
  background: #000080;
  color: var(--aol-yellow);
  padding: 4px 0;
  font-size: 12px;
  font-weight: bold;
}

/* ========================================
   EXPERIENCE SECTION
   ======================================== */
.experience-entry {
  margin-bottom: 16px;
}

.job-header {
  margin-bottom: 8px;
}

.job-header h3 {
  font-size: 15px;
  color: var(--aol-blue);
}

.job-org {
  display: block;
  font-size: 13px;
  color: #333;
  font-weight: bold;
}

.job-date {
  display: block;
  font-size: 11px;
  color: #666;
  font-style: italic;
}

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

.retro-list li {
  font-size: 12px;
  line-height: 1.6;
  padding: 2px 0 2px 16px;
  position: relative;
  color: #333;
}

.retro-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--aol-blue);
  font-weight: bold;
}

.retro-hr {
  border: none;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #ffffff;
  margin: 12px 0;
}

/* ========================================
   EDUCATION / NOTEPAD
   ======================================== */
.notepad-body {
  background: #ffffff;
  font-family: 'Courier New', monospace;
}

.notepad-text {
  font-size: 13px;
  line-height: 1.5;
  color: #000;
  white-space: pre;
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.skill-category {
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 8px;
  background: #f0f0ff;
}

.skill-category h4 {
  font-size: 12px;
  color: var(--aol-blue);
  margin-bottom: 6px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.skill-tag {
  background: linear-gradient(180deg, #e8e8f8, #c0c0d8);
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 2px 8px;
  font-size: 11px;
  cursor: default;
}

.skill-tag:hover {
  background: linear-gradient(180deg, #c0c0ff, #8080c0);
  color: white;
}

.skill-bars {
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 12px;
  background: #f0f0ff;
}

.skill-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
}

.skill-bar-item span:first-child {
  width: 120px;
  text-align: right;
  font-weight: bold;
  color: #333;
}

.skill-bar-bg {
  flex: 1;
  height: 14px;
  background: white;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #000080, #0066cc, #3399ff);
  transition: width 1s ease-out;
}

/* ========================================
   MAIL / CONTACT
   ======================================== */
.mail-header {
  text-align: center;
  margin-bottom: 16px;
}

.youve-got-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ygm-icon { font-size: 36px; }

.youve-got-mail h2 {
  font-size: 22px;
  color: var(--aol-blue);
  font-family: 'Georgia', serif;
}

.mail-compose {
  background: #f0f0ff;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 12px;
}

.mail-field {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
}

.mail-field label {
  font-weight: bold;
  min-width: 90px;
  color: #333;
}

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

.contact-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  text-decoration: none;
  color: #000;
  font-size: 12px;
  cursor: pointer;
  flex: 1;
  justify-content: center;
}

.contact-btn:hover {
  background: #d0d0d0;
}

.contact-btn:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

.contact-icon { font-size: 18px; }

.visitor-counter {
  text-align: center;
  margin-top: 16px;
  padding: 8px;
  background: #000;
  border: 1px solid #333;
}

.counter-text {
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

/* ========================================
   PROJECTS / FILE MANAGER
   ======================================== */
.file-manager {
  font-size: 12px;
}

.file-path {
  background: white;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 4px 8px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  margin-bottom: 8px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.1s;
}

.file-item:hover {
  background: #000080;
  color: white;
  border: 1px dotted white;
}

.file-item:hover .file-desc,
.file-item:hover .file-meta,
.file-item:hover .file-desc a {
  color: #ccc;
}

.file-icon { font-size: 24px; }

.file-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.file-desc {
  font-size: 11px;
  color: #555;
}

.file-desc a {
  color: var(--aol-blue);
}

.file-meta {
  font-size: 10px;
  color: #888;
}

/* ========================================
   BUDDY LIST
   ======================================== */
.buddy-list {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 180px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  z-index: 600;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.buddy-body {
  padding: 4px;
}

.buddy-search {
  margin-bottom: 4px;
}

.buddy-search input {
  width: 100%;
  padding: 2px 4px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  font-size: 10px;
  background: white;
}

.buddy-category {
  margin-bottom: 4px;
}

.buddy-cat-header {
  font-size: 11px;
  font-weight: bold;
  padding: 2px 4px;
  cursor: pointer;
  color: #000;
}

.buddy-cat-header:hover {
  color: var(--aol-blue);
}

.buddy-category.collapsed .buddy-items {
  display: none;
}

.buddy-items {
  padding-left: 8px;
}

.buddy-item {
  font-size: 11px;
  padding: 1px 4px;
  cursor: pointer;
}

.buddy-item:hover {
  background: #000080;
  color: white;
}

.buddy-item.online { color: #006600; }
.buddy-item.away { color: #cc8800; }
.buddy-item.offline { color: #888; }
.buddy-item:hover { color: white; }

.buddy-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  padding: 4px 0;
  border-top: 1px solid #808080;
}

.buddy-action-btn {
  flex: 1;
  padding: 2px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  font-size: 10px;
  cursor: pointer;
}

/* ========================================
   YOU'VE GOT MAIL NOTIFICATION
   ======================================== */
.ygm-notification {
  position: fixed;
  bottom: 50px;
  right: 20px;
  z-index: 8000;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ygm-popup {
  background: var(--win95-gray);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.ygm-popup-icon {
  font-size: 28px;
}

.ygm-close {
  padding: 2px 16px;
  background: var(--win95-gray);
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  font-size: 11px;
  cursor: pointer;
  margin-left: 10px;
}

/* ========================================
   FULL RESUME WINDOW
   ======================================== */
.resume-body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 13px;
  line-height: 1.6;
  color: #000;
  background: #fff;
  padding: 24px 32px;
}

.resume-header {
  text-align: center;
  margin-bottom: 8px;
}

.resume-header h1 {
  font-size: 24px;
  letter-spacing: 4px;
  color: #000080;
  margin-bottom: 4px;
}

.resume-tagline {
  font-size: 13px;
  color: #333;
  font-style: italic;
  margin-bottom: 8px;
}

.resume-contact-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  flex-wrap: wrap;
}

.resume-contact-bar a {
  color: #000080;
  text-decoration: underline;
}

.resume-divider {
  border: none;
  border-top: 2px solid #000080;
  margin: 12px 0;
}

.resume-section {
  margin-bottom: 8px;
}

.resume-section-title {
  font-size: 14px;
  letter-spacing: 3px;
  color: #000080;
  border-bottom: 1px solid #000080;
  padding-bottom: 2px;
  margin-bottom: 8px;
}

.resume-section p {
  font-size: 12px;
  margin-bottom: 6px;
}

.resume-job {
  margin-bottom: 12px;
}

.resume-job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.resume-job-header strong {
  font-size: 13px;
}

.resume-job-date {
  font-size: 11px;
  color: #555;
  font-style: italic;
}

.resume-job-org {
  font-size: 12px;
  color: #444;
  margin-bottom: 4px;
}

.resume-job ul {
  padding-left: 20px;
  margin: 4px 0;
}

.resume-job ul li {
  font-size: 12px;
  margin-bottom: 2px;
}

.resume-coursework {
  font-size: 11px;
  color: #555;
  font-style: italic;
  margin-top: 4px;
}

.resume-skills-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resume-skill-row {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.resume-skill-label {
  font-weight: bold;
  min-width: 120px;
  color: #000080;
}

.resume-footer {
  margin-top: 16px;
  background: #000080;
  color: #ffcc00;
  padding: 4px 0;
  font-size: 11px;
}

/* ========================================
   WINDOW MAXIMIZE STATE
   ======================================== */
.win95-window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ========================================
   QUIRKY RETRO FEATURES
   ======================================== */

/* Blinking text (like the old <blink> tag) */
blink, .blink {
  animation: blinkText 1s step-end infinite;
}

@keyframes blinkText {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* AOL Status Bar at bottom of toolbar */
.aol-status-bar {
  background: #e8e8e0;
  border-top: 1px solid #a0a0a0;
  padding: 2px 8px;
  font-size: 10px;
  color: #555;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.status-typing {
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #333;
  animation: typingCursor 0.7s step-end infinite;
}

@keyframes typingCursor {
  0%, 50% { border-color: #333; }
  51%, 100% { border-color: transparent; }
}

.status-right {
  font-size: 10px;
  color: #888;
  white-space: nowrap;
}

/* Under Construction banner */
.under-construction {
  text-align: center;
  padding: 6px;
  background: repeating-linear-gradient(
    45deg,
    #ffcc00,
    #ffcc00 10px,
    #000 10px,
    #000 20px
  );
  font-size: 11px;
  font-weight: bold;
  color: #000;
}

.under-construction span {
  background: #ffcc00;
  padding: 2px 12px;
  display: inline-block;
}

/* Retro cursor on desktop */
@media (min-width: 769px) {
  .desktop-area {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M0 0 L0 14 L4 10 L7 16 L9 15 L6 9 L11 9 Z' fill='white' stroke='black' stroke-width='1'/%3E%3C/svg%3E") 0 0, default;
  }
}

/* Scanline overlay (subtle CRT effect) */
.scanlines::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 99999;
}

/* Away message popup */
.away-message {
  position: absolute;
  background: #ffffcc;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 12px 16px;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  max-width: 260px;
  z-index: 700;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  display: none;
}

.away-message .away-title {
  font-weight: bold;
  color: #000080;
  margin-bottom: 6px;
  font-size: 12px;
}

.away-message .away-close {
  display: block;
  text-align: right;
  margin-top: 8px;
  color: #000080;
  cursor: pointer;
  font-size: 10px;
  text-decoration: underline;
}

/* Wobble animation for buddy items on hover */
.buddy-item:hover {
  animation: buddyWobble 0.3s ease;
}

@keyframes buddyWobble {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

/* Retro link styling for 90s feel */
.win95-body a {
  color: #0000EE;
  text-decoration: underline;
}

.win95-body a:visited {
  color: #551A8B;
}

/* ========================================
   SCROLLBAR (retro style)
   ======================================== */
::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background: #c0c0c0;
  border-left: 1px solid #808080;
}

::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
}

::-webkit-scrollbar-button {
  background: #c0c0c0;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  height: 16px;
}

/* ========================================
   MOBILE - FULL REDESIGN (≤ 768px)
   Stacked layout, no dragging, touch-friendly
   ======================================== */
@media (max-width: 768px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
  }

  /* --- Dial-up screen: shrink to fit --- */
  .dialup-window {
    width: 92%;
    max-width: 360px;
  }

  .aol-text-online { font-size: 28px; }
  .aol-text-america { font-size: 12px; letter-spacing: 4px; }

  .connection-figures { gap: 10px; }
  .figure-box { width: 60px; height: 55px; font-size: 26px; }
  .connection-status { font-size: 12px; }

  /* --- Hide desktop-only elements --- */
  .buddy-list { display: none !important; }
  .desktop-icons { display: none !important; }
  .start-menu { display: none !important; }

  /* --- AOL Toolbar: compact mobile version --- */
  .aol-toolbar {
    position: sticky;
    top: 0;
    z-index: 8000;
  }

  .aol-toolbar-top {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
    gap: 2px;
  }

  .aol-logo-small {
    padding: 3px 6px;
    flex-shrink: 0;
  }

  .aol-mini-text { font-size: 12px; letter-spacing: 1px; }

  .toolbar-btn {
    padding: 4px 8px;
    min-width: 48px;
    flex-shrink: 0;
  }

  .tb-icon { font-size: 16px; }
  .tb-label { font-size: 9px; }

  .aol-toolbar-address {
    padding: 2px 6px;
  }

  .address-label { font-size: 10px; }
  .address-input { font-size: 11px; min-width: 0; }
  .go-btn { padding: 2px 8px; font-size: 10px; }

  .welcome-banner {
    font-size: 10px;
    padding: 3px 8px;
    white-space: normal;
    overflow: visible;
  }

  /* --- Desktop area: scrollable column --- */
  .desktop-area {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    min-height: calc(100vh - 32px);
    padding: 8px;
    padding-top: 8px;
    padding-bottom: 40px;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* --- Mobile navigation grid (replaces desktop icons) --- */
  .mobile-nav {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px;
    background: var(--win95-gray);
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
  }

  .mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    background: var(--win95-gray);
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    cursor: pointer;
    font-size: 10px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
    background: #b0b0b0;
  }

  .mobile-nav-btn .nav-icon { font-size: 24px; }
  .mobile-nav-btn .nav-label { font-size: 10px; color: #000; font-weight: bold; }

  /* --- Windows: static, full-width, stacked --- */
  .win95-window {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-height: none !important;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    z-index: 1 !important;
    display: none;
    flex-direction: column;
  }

  .win95-window.mobile-visible {
    display: flex !important;
  }

  /* Hide minimize/maximize on mobile - not useful */
  .minimize-btn, .maximize-btn { display: none; }

  /* Titlebar: not draggable on mobile */
  .win95-titlebar {
    cursor: default;
    padding: 6px 8px;
    font-size: 13px;
  }

  .tb-btn { width: 20px; height: 18px; font-size: 11px; }

  .win95-menu-bar span { padding: 4px 8px; font-size: 11px; }

  .win95-body {
    padding: 12px;
    font-size: 13px;
  }

  /* --- About section mobile --- */
  .retro-title { font-size: 17px; }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .profile-avatar { width: 56px; height: 56px; font-size: 20px; }
  .profile-info h2 { font-size: 16px; }
  .subtitle { font-size: 12px; }
  .profile-summary { font-size: 12px; }

  /* --- Experience mobile --- */
  .job-header h3 { font-size: 14px; }
  .retro-list li { font-size: 12px; line-height: 1.5; }

  /* --- Skills mobile --- */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .skill-tag {
    padding: 4px 10px;
    font-size: 11px;
  }

  .skill-bar-item span:first-child { width: 90px; font-size: 10px; }

  /* --- Contact / mail mobile --- */
  .youve-got-mail h2 { font-size: 18px; }
  .ygm-icon { font-size: 28px; }

  .contact-links {
    flex-direction: column;
  }

  .contact-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  /* --- Projects / file manager mobile --- */
  .file-item { padding: 10px 8px; }
  .file-icon { font-size: 20px; }
  .file-name { font-size: 12px; }
  .file-desc { font-size: 11px; }

  /* --- Resume window mobile --- */
  .resume-body { padding: 16px; }
  .resume-header h1 { font-size: 20px; letter-spacing: 2px; }
  .resume-tagline { font-size: 12px; }
  .resume-contact-bar { flex-direction: column; align-items: center; gap: 4px; font-size: 11px; }
  .resume-section-title { font-size: 13px; letter-spacing: 2px; }
  .resume-job-header { flex-direction: column; gap: 2px; }
  .resume-skill-row { flex-direction: column; gap: 2px; }
  .resume-skill-label { min-width: auto; }

  /* --- Hide away message on mobile --- */
  .away-message { display: none !important; }

  /* --- Status bar mobile --- */
  .aol-status-bar {
    font-size: 9px;
    padding: 2px 6px;
  }

  /* --- Scanlines off on mobile for performance --- */
  .scanlines::after { display: none; }

  /* --- Under construction mobile --- */
  .under-construction { font-size: 10px; padding: 4px; }
  .under-construction span { padding: 1px 8px; }

  /* --- Taskbar mobile --- */
  .taskbar {
    position: fixed;
    bottom: 0;
    height: 36px;
    z-index: 9000;
  }

  .taskbar-items { display: none; }

  .start-btn { height: 28px; font-size: 11px; }
  .taskbar-clock { font-size: 10px; }
  .systray-icon { font-size: 11px; }

  /* --- YGM notification mobile --- */
  .ygm-notification {
    bottom: 44px;
    right: 8px;
    left: 8px;
  }

  .ygm-popup {
    font-size: 13px;
    padding: 10px 14px;
    width: 100%;
  }

  /* --- Notepad mobile --- */
  .notepad-text { font-size: 11px; white-space: pre-wrap; }
}

/* ========================================
   SMALL PHONES (≤ 380px)
   ======================================== */
@media (max-width: 380px) {
  .mobile-nav { grid-template-columns: repeat(2, 1fr); }
  .aol-toolbar-top { gap: 0; }
  .toolbar-btn { padding: 3px 5px; min-width: 40px; }
  .tb-icon { font-size: 14px; }
  .tb-label { display: none; }
  .dialup-window { width: 96%; }
  .figure-box { width: 50px; height: 45px; font-size: 22px; }
}
