/* ============================================
   Miguel Nogueira — Personal Site
   Vaporwave × Win95 aesthetic
   ============================================ */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Win95 Cursor Theme ── */
html, body {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M2 2 L2 22 L8 18 L11 25 L14 24 L11 17 L18 17 Z" fill="white" stroke="black" stroke-width="1" stroke-linejoin="round"/></svg>') 2 2, auto;
}

a, button, input, select, textarea, [onclick], .win-btn, .radio-btn, .nav-cmd, .taskbar-item, .start-menu-item {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M8 8 L20 8 L20 14 L24 14 L24 26 L8 26 Z" fill="white" stroke="black" stroke-width="1" stroke-linejoin="round"/><rect x="11" y="11" width="6" height="2" fill="black"/></svg>') 8 8, pointer;
}

html {
  scroll-behavior: smooth;
}

/* ── Vaporwave Background ── */
.vw-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg,
    #0d0221 0%,
    #1a0a2e 15%,
    #4a1e5e 30%,
    #6c3fc7 45%,
    #9d4edd 60%,
    #f687b3 72%,
    #ffd4a3 82%,
    #ff8e72 88%,
    #1a0a2e 100%
  );
}

/* Vaporwave sun */
.vw-sun {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(180deg,
    #ffe066 0%,
    #ff9966 30%,
    #c77dff 60%,
    #c34b8c 100%
  );
  filter: blur(2px);
  opacity: 0.85;
  animation: sunGlow 4s ease-in-out infinite alternate;
}

.vw-sun::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 8px,
    rgba(45, 27, 78, 0.6) 8px,
    rgba(45, 27, 78, 0.6) 12px
  );
  mask: linear-gradient(180deg, transparent 50%, black 50%);
  -webkit-mask: linear-gradient(180deg, transparent 50%, black 50%);
}

@keyframes sunGlow {
  from { filter: blur(2px) brightness(1); }
  to { filter: blur(3px) brightness(1.15); }
}

/* Vaporwave grid floor */
.vw-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50vh;
  background-image:
    linear-gradient(rgba(255, 0, 200, 0.4) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.3) 2px, transparent 2px);
  background-size: 60px 60px;
  transform: perspective(400px) rotateX(60deg);
  transform-origin: bottom;
  animation: gridScroll 3s linear infinite;
}

@keyframes gridScroll {
  from { background-position: 0 0; }
  to { background-position: 0 60px; }
}

/* Scanlines */
.vw-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* Stars */
.vw-stars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40vh;
  background-image:
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(1px 1px at 60% 20%, white, transparent),
    radial-gradient(1.5px 1.5px at 80% 40%, white, transparent),
    radial-gradient(1px 1px at 40% 15%, white, transparent),
    radial-gradient(2px 2px at 90% 25%, white, transparent),
    radial-gradient(1px 1px at 15% 45%, white, transparent),
    radial-gradient(1.5px 1.5px at 55% 10%, white, transparent),
    radial-gradient(1px 1px at 75% 35%, white, transparent);
  opacity: 0.5;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.3; }
  to { opacity: 0.6; }
}

/* ── Desktop Layout ── */
.desktop {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 32px; /* menubar height */
  padding-bottom: 40px; /* taskbar height */
}

/* ── Desktop Menubar (top bar) ── */
.desktop-menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(90deg, #0d0221, #1a0a2e);
  border-bottom: 1px solid rgba(255, 0, 200, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  z-index: 1000;
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #e0c0ff;
}

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

.menubar-logo {
  cursor: pointer;
  font-size: 18px;
  padding: 2px 6px;
  border-radius: 2px;
  transition: background 0.15s;
}

.menubar-logo:hover {
  background: rgba(255, 0, 200, 0.3);
}

.menubar-title {
  font-weight: bold;
  letter-spacing: 1px;
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Start Menu ── */
.start-menu {
  display: none;
  position: fixed;
  bottom: 40px;
  left: 4px;
  width: 280px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  font-family: 'Inter', sans-serif;
}

.start-menu.open {
  display: flex;
  flex-direction: row;
}

.start-menu-sidebar {
  width: 28px;
  background: linear-gradient(180deg, #6c3fc7, #9d4edd);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
}

.start-menu-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: white;
  font-family: 'VT323', monospace;
  font-size: 20px;
  font-weight: bold;
  white-space: nowrap;
}

.start-menu-title-sub {
  font-size: 14px;
  opacity: 0.8;
}

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

.start-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  color: #000;
  text-decoration: none;
  font-size: 13px;
  border-radius: 2px;
  transition: background 0.1s;
}

.start-item:hover {
  background: #6c3fc7;
  color: #fff;
}

.start-item-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.start-menu-divider {
  border: none;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #ffffff;
  margin: 4px 0;
}

/* ── Win95 Window Chrome ── */
.win-hero,
.win-section {
  width: min(900px, 92vw);
  margin: 16px auto;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
  position: relative;
}

.win-section {
  scroll-margin-top: 40px;
}

/* ── Title Bar ── */
.win-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #6c3fc7, #9d4edd);
  padding: 3px 4px 3px 6px;
  color: #fff;
  font-family: 'VT323', monospace;
  font-size: 16px;
  font-weight: bold;
  user-select: none;
}

.win-titlebar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

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

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

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

.win-btn {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  color: #000;
  font-size: 11px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  transition: all 0.1s;
}

.win-btn:hover {
  background: #d4d4d4;
}

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

.win-btn-close:hover {
  background: #c43b3b;
  color: #fff;
}

/* ── Window Body ── */
.win-body {
  background: #c0c0c0;
  padding: 16px;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* ── Status Bar ── */
.win-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 2px 6px;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  color: #404040;
  border-top: 1px solid #808080;
  background: #c0c0c0;
}

.win-status-section {
  padding: 1px 4px;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
}

.win-status-right {
  /* sunken right cell */
}

/* ── Section Header ── */
.section-header-bar {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #6c3fc7, #9d4edd, transparent) 1;
}

.section-title {
  font-family: 'VT323', monospace;
  font-size: 28px;
  color: #4a1e5e;
  letter-spacing: 1px;
}

.section-subtitle {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

/* ── Hero Section ── */
.hero-body {
  padding: 24px;
}

.hero-content {
  display: flex;
  gap: 32px;
  align-items: center;
}

.hero-left {
  flex: 1;
}

.hero-greeting {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #6c3fc7;
}

.hero-name {
  font-family: 'VT323', monospace;
  font-size: 48px;
  color: #1a0a2e;
  line-height: 1.1;
  margin-bottom: 4px;
  text-shadow: 2px 2px 0px rgba(255, 0, 200, 0.15);
}

.hero-title-text {
  font-size: 18px;
  font-weight: 600;
  color: #9d4edd;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 13px;
  color: #404040;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 48ch;
}

.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #404040;
}

.hero-info-icon {
  font-size: 14px;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary {
  background: linear-gradient(90deg, #6c3fc7, #9d4edd);
  color: #fff;
  border-color: #df9ec0 #5a1e6e #5a1e6e #df9ec0;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #5a1e6e, #a03b78);
}

.btn-secondary {
  background: #c0c0c0;
  color: #1a0a2e;
}

.btn-secondary:hover {
  background: #d4d4d4;
}

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

/* ── Social Links ── */
.social-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.social-link {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #4a1e5e;
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  background: #c0c0c0;
  transition: all 0.15s;
}

.social-link:hover {
  background: #6c3fc7;
  color: #fff;
  border-color: #9d5eb8 #5a1e6e #5a1e6e #9d5eb8;
}

/* ── Hero Avatar ── */
.hero-right {
  flex-shrink: 0;
}

.hero-avatar-frame {
  width: 200px;
  height: 200px;
  border: 3px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  background: #c0c0c0;
  padding: 4px;
  position: relative;
}

.hero-avatar-frame::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(255, 0, 200, 0.3);
  pointer-events: none;
}

.hero-avatar-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #808080;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── About Section ── */
.about-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.about-image-wrap {
  flex-shrink: 0;
  width: 200px;
  height: 250px;
  border: 3px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  padding: 4px;
  background: #c0c0c0;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #808080;
}

.about-text {
  flex: 1;
}

.about-heading-sm {
  font-size: 13px;
  color: #888;
  margin-bottom: 2px;
}

.about-heading-lg {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #4a1e5e;
  margin-bottom: 10px;
}

.about-text p {
  font-size: 13px;
  color: #404040;
  line-height: 1.7;
  margin-bottom: 10px;
}

.about-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.stat-item {
  text-align: center;
  padding: 8px 16px;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  background: #d4d0c8;
}

.stat-number {
  font-family: 'VT323', monospace;
  font-size: 28px;
  color: #6c3fc7;
  font-weight: bold;
}

.stat-label {
  font-size: 11px;
  color: #404040;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Skills Grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

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

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #808080;
}

.skill-icon {
  font-size: 20px;
}

.skill-category-header h3 {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #4a1e5e;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-size: 12px;
  padding: 3px 8px;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  background: #c0c0c0;
  color: #1a0a2e;
  font-family: 'Inter', sans-serif;
}

/* ── Experience ── */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exp-card {
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  background: #d4d0c8;
  padding: 12px 14px;
}

.exp-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.exp-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.exp-info {
  flex: 1;
}

.exp-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a0a2e;
}

.exp-company {
  font-size: 13px;
  color: #6c3fc7;
}

.exp-date {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
}

.exp-desc {
  font-size: 13px;
  color: #404040;
  line-height: 1.6;
  margin-bottom: 8px;
}

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

.exp-tag {
  font-size: 11px;
  padding: 2px 7px;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  background: #c0c0c0;
  color: #4a1e5e;
}

/* ── Education Timeline ── */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, #6c3fc7, #9d4edd);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9d4edd;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #6c3fc7;
}

.timeline-content {
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  background: #d4d0c8;
  padding: 12px 14px;
}

.timeline-date {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #6c3fc7;
}

.timeline-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a0a2e;
  margin: 4px 0 2px;
}

.timeline-inst {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 13px;
  color: #404040;
  line-height: 1.5;
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

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

.project-icon-wrap {
  font-size: 36px;
  margin-bottom: 8px;
}

.project-name {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #4a1e5e;
  margin-bottom: 6px;
}

.project-formerly {
  font-size: 14px;
  color: #888;
}

.project-desc {
  font-size: 13px;
  color: #404040;
  line-height: 1.6;
  margin-bottom: 10px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.project-tech span {
  font-size: 11px;
  padding: 2px 7px;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  background: #c0c0c0;
  color: #4a1e5e;
}

.project-link {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #6c3fc7;
  text-decoration: none;
  border-bottom: 1px dashed #9d4edd;
}

.project-link:hover {
  color: #9d4edd;
  border-bottom-style: solid;
}

/* ── Contact ── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-heading {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #4a1e5e;
  margin-bottom: 8px;
}

.contact-desc {
  font-size: 13px;
  color: #404040;
  line-height: 1.6;
  margin-bottom: 16px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.contact-item-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
}

.contact-item-text p {
  font-size: 14px;
  color: #1a0a2e;
}

.contact-social {
  margin-top: 8px;
}

/* ── Contact Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #404040;
}

.form-required {
  color: #c43b3b;
}

.form-group input,
.form-group textarea {
  padding: 6px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background: #fff;
  color: #000;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #6c3fc7;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-status {
  font-size: 13px;
  padding: 4px 0;
}

.form-status.success {
  color: #2d7a2d;
}

.form-status.error {
  color: #c43b3b;
}

/* ── Taskbar ── */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(90deg, #0d0221, #1a0a2e);
  border-top: 1px solid rgba(255, 0, 200, 0.4);
  display: flex;
  align-items: center;
  padding: 0 4px;
  z-index: 1000;
  gap: 4px;
}

.taskbar-start {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  cursor: pointer;
  font-family: 'VT323', monospace;
  font-size: 16px;
  font-weight: bold;
  color: #000;
  height: 32px;
  transition: all 0.1s;
}

.taskbar-start:hover {
  background: #d4d4d4;
}

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

.taskbar-start-logo {
  font-size: 16px;
}

.taskbar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 0, 200, 0.3);
  margin: 0 2px;
}

.taskbar-items {
  display: flex;
  gap: 3px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.taskbar-items::-webkit-scrollbar {
  display: none;
}

.taskbar-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(192, 192, 192, 0.15);
  border: 1px solid rgba(255, 0, 200, 0.3);
  color: #e0c0ff;
  text-decoration: none;
  font-family: 'VT323', monospace;
  font-size: 14px;
  white-space: nowrap;
  height: 30px;
  transition: all 0.1s;
  border-radius: 2px;
}

.taskbar-item:hover {
  background: rgba(192, 192, 192, 0.3);
}

.taskbar-item.active {
  background: rgba(123, 45, 142, 0.5);
  border-color: rgba(255, 0, 200, 0.6);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.taskbar-item-icon {
  font-size: 14px;
}

.taskbar-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  height: 32px;
}

.tray-icon {
  font-size: 14px;
  cursor: pointer;
}

.tray-clock {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #e0c0ff;
}

/* ── CRT Overlay ── */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

.crt-flicker {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.015);
  animation: crtFlicker 0.15s infinite;
}

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

.crt-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

/* ── Boot Screen ── */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  color: #c0c0c0;
  font-family: 'VT323', monospace;
  font-size: 18px;
  line-height: 1.5;
  padding: 24px;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

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

.boot-text {
  white-space: pre-wrap;
  max-width: 800px;
}

.boot-text .boot-ok { color: #00ff41; }
.boot-text .boot-warn { color: #ffaa00; }
.boot-text .boot-info { color: #4488ff; }
.boot-text .boot-cursor { animation: blink 1s step-end infinite; }

.boot-skip-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: #808080;
  font-family: 'VT323', monospace;
  font-size: 14px;
  animation: blink 1.5s ease-in-out infinite;
}

/* ── Window States ── */
.win-hero, .win-section, .win-float {
  transition: opacity 0.25s;
}

.win-dragging {
  transition: none !important;
}

.win-maximized {
  position: fixed !important;
  top: 36px !important;
  left: 4px !important;
  right: 4px !important;
  width: auto !important;
  margin: 0 !important;
  max-width: none !important;
  bottom: 44px !important;
}

.win-collapsed .win-body,
.win-collapsed .win-statusbar {
  display: none;
}

.win-collapsed {
  opacity: 0.7;
}

.win-minimized {
  display: none !important;
}

.win-closing {
  opacity: 0;
  transform: scale(0.95);
}

.win-opening {
  opacity: 0;
  transform: scale(0.95);
}

.win-focused {
  box-shadow: 3px 3px 14px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 0, 200, 0.15);
  z-index: 100 !important;
}

/* Drag cursor */
.win-titlebar[data-drag] {
  cursor: move;
}

/* ── Radio Widget ── */
.win-float {
  position: relative;
  width: 280px;
  margin: 16px auto;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
  z-index: 50;
}

.radio-body {
  padding: 10px;
  background: #0d0221;
}

.radio-visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 40px;
  margin-bottom: 8px;
}

.radio-bar {
  width: 6px;
  height: 8px;
  background: linear-gradient(180deg, #c77dff, #9d4edd);
  border-radius: 1px;
  animation: radioBar 0.8s ease-in-out infinite;
}

.radio-bar:nth-child(1) { animation-delay: 0.0s; }
.radio-bar:nth-child(2) { animation-delay: 0.1s; }
.radio-bar:nth-child(3) { animation-delay: 0.2s; }
.radio-bar:nth-child(4) { animation-delay: 0.3s; }
.radio-bar:nth-child(5) { animation-delay: 0.15s; }
.radio-bar:nth-child(6) { animation-delay: 0.35s; }
.radio-bar:nth-child(7) { animation-delay: 0.05s; }
.radio-bar:nth-child(8) { animation-delay: 0.25s; }
.radio-bar:nth-child(9) { animation-delay: 0.4s; }
.radio-bar:nth-child(10) { animation-delay: 0.12s; }
.radio-bar:nth-child(11) { animation-delay: 0.28s; }
.radio-bar:nth-child(12) { animation-delay: 0.18s; }

@keyframes radioBar {
  0%, 100% { height: 8px; }
  50% { height: 32px; }
}

.radio-paused .radio-bar {
  animation-play-state: paused;
  height: 4px !important;
}

.radio-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.radio-art-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid #555;
  background: #1a0a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radio-text {
  flex: 1;
  min-width: 0;
}

.radio-station {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #c77dff;
  margin-bottom: 2px;
}

.radio-track {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #c0c0c0;
  min-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.radio-btn {
  width: 28px;
  height: 24px;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  cursor: pointer;
  font-size: 12px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio-btn:hover { background: #d4d4d4; }
.radio-btn:active { border-color: #808080 #ffffff #ffffff #808080; }

.radio-vol-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.radio-vol-icon { font-size: 12px; }

.radio-vol {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #4a1e5e;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.radio-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 14px;
  background: #c0c0c0;
  border: 1px solid #808080;
  border-radius: 1px;
  cursor: pointer;
}

.radio-vol::-moz-range-thumb {
  width: 10px;
  height: 14px;
  background: #c0c0c0;
  border: 1px solid #808080;
  border-radius: 1px;
  cursor: pointer;
}

/* ── Context Menu ── */
.ctx-menu {
  display: none;
  position: fixed;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 5000;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  min-width: 160px;
  padding: 2px;
}

.ctx-menu.open { display: block; }

.ctx-item {
  padding: 4px 16px;
  cursor: pointer;
 color: #000;
}

.ctx-item:hover { background: #6c3fc7; color: #fff; }

.ctx-separator {
  border-top: 1px solid #808080;
  border-bottom: 1px solid #ffffff;
 margin: 2px 0;
}

/* ── Typing cursor ── */
.type-cursor::after {
  content: '_';
  animation: blink 0.8s step-end infinite;
  color: #6c3fc7;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 20px;
  }

  .hero-info {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-image-wrap {
    width: 160px;
    height: 200px;
  }

  .about-text {
    text-align: left;
  }

  .about-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .exp-card-header {
    flex-wrap: wrap;
  }

  .exp-date {
    font-size: 13px;
  }

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

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

@media (max-width: 480px) {
  .win-hero,
  .win-section,
  .win-float {
    width: 96vw;
    margin: 8px auto;
  }
  .win-float { width: 96vw; }
  .radio-body { padding: 8px; }

  .win-body {
    padding: 12px;
  }

  .hero-body {
    padding: 16px;
  }

  .hero-name {
    font-size: 36px;
  }

  .hero-avatar-frame {
    width: 140px;
    height: 140px;
  }

  .about-stats {
    gap: 10px;
  }

  .stat-item {
    padding: 6px 10px;
  }

  .stat-number {
    font-size: 22px;
  }

  .taskbar-item-text {
    display: none;
  }

  .taskbar-item {
    padding: 4px 8px;
  }

  .menubar-title {
    display: none;
  }

  .section-title {
    font-size: 22px;
  }

  .start-menu {
    width: 240px;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .vw-sun,
  .vw-grid,
  .vw-stars {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── Scrollbar Styling (Win95-ish) ── */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: #c0c0c0;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #d4d4d4;
}

::-webkit-scrollbar-corner {
  background: #c0c0c0;
}
