/* ============================================
   RETRO COMPUTER THEME
   Complete CRT monitor experience
   ============================================ */

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

html, body {
  width: 100%;
  min-height: 100%;
  background: #0a0a0a;
  font-family: 'Courier New', 'Courier', monospace;
  overflow: hidden;
}

/* ============================================
   CRT MONITOR EFFECTS
   ============================================ */

.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Scanlines */
.scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  animation: scrollScanlines 10s linear infinite;
}

@keyframes scrollScanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

/* Screen flicker */
.crt-flicker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  animation: flicker 0.15s infinite;
}

@keyframes flicker {
  0% { opacity: 0.02; }
  50% { opacity: 0.05; }
  100% { opacity: 0.02; }
}

/* Amber phosphor glow */
.screen-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 176, 0, 0.03) 0%,
    transparent 70%
  );
  mix-blend-mode: screen;
}

/* Vignette effect */
.vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* ============================================
   BOOT SEQUENCE SCREEN
   ============================================ */

.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 40px;
  z-index: 1000;
  color: #ffb000;
  text-shadow: 0 0 5px rgba(255, 176, 0, 0.5);
}

.boot-content {
  width: 100%;
  max-width: 800px;
}

.boot-logo {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.boot-version {
  font-size: 14px;
  color: #cc8c00;
  margin-bottom: 4px;
}

.boot-copyright {
  font-size: 12px;
  color: #996900;
  margin-bottom: 40px;
}

.boot-memory {
  margin-bottom: 20px;
}

.memory-line {
  font-size: 14px;
  margin-bottom: 8px;
}

.memory-check {
  font-size: 12px;
  line-height: 1.6;
  color: #cc8c00;
}

.memory-dot {
  display: inline-block;
  animation: memoryBlink 0.5s ease-in-out infinite;
}

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

.boot-devices {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.device-line {
  opacity: 0;
  animation: fadeIn 0.1s ease forwards;
}

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

.boot-message {
  font-size: 14px;
  color: #ffb000;
}

.boot-cursor {
  display: inline-block;
  animation: cursorBlink 1s step-end infinite;
}

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

/* ============================================
   DOS TERMINAL SCREEN
   ============================================ */

.dos-terminal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 900;
  color: #ffb000;
  text-shadow: 0 0 5px rgba(255, 176, 0, 0.5);
  padding: 40px;
}

.dos-header {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 14px;
}

.dos-prompt {
  color: #ffb000;
}

.dos-command {
  color: #fff;
  margin-left: 8px;
}

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

.dos-line {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 30px;
}

.dos-type {
  color: #fff;
  font-weight: bold;
}

.dos-cursor {
  color: #ffb000;
  animation: cursorBlink 1s step-end infinite;
}

.dos-loading {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.dos-bar {
  width: 100%;
  height: 20px;
  border: 2px solid #ffb000;
  background: #0a0a0a;
  margin-bottom: 10px;
  padding: 2px;
}

.dos-progress {
  height: 100%;
  width: 0%;
  background: #ffb000;
  box-shadow: 0 0 10px rgba(255, 176, 0, 0.5);
  transition: width 0.1s linear;
}

.dos-percent {
  font-size: 14px;
  color: #cc8c00;
}

.dos-message {
  font-size: 12px;
  color: #996900;
  margin-top: 20px;
  min-height: 20px;
}

.dos-hint-inline {
  margin-top: 20px;
  font-size: 11px;
  color: #cc8c00;
  letter-spacing: 2px;
  animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* ============================================
   DESKTOP GUI
   ============================================ */

.desktop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a2e;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(107, 70, 193, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(70, 130, 180, 0.1) 0%, transparent 50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
}

/* Desktop Header/Menu Bar */
.desktop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 12px;
  background: linear-gradient(to bottom, #2d2d44 0%, #1a1a2e 100%);
  border-bottom: 1px solid #3d3d5c;
}

.menu-bar {
  display: flex;
  gap: 20px;
}

.menu-item {
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  padding: 4px 8px;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

/* Desktop Icons */
.desktop-icons {
  position: absolute;
  top: 50px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.desktop-icon > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: inherit;
}

.icon-graphic {
  font-size: 32px;
  filter: grayscale(100%) brightness(1.2);
}

.icon-label {
  font-size: 11px;
  color: #fff;
  text-align: center;
  max-width: 80px;
  word-wrap: break-word;
}

/* Window Styling */
.window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.5);
  display: none;
}

.window.active {
  display: block;
}

.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: linear-gradient(to right, #000080, #1084d0);
  color: #fff;
}

.window-title {
  font-size: 12px;
  font-weight: bold;
}

.window-controls {
  display: flex;
  gap: 4px;
}

.win-btn {
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  border: 1px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  color: #000;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.window-content {
  padding: 30px;
  background: #c0c0c0;
  text-align: center;
}

.window-scroll {
  max-height: 400px;
  overflow-y: auto;
  text-align: left;
}

.window-content h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: #000;
  margin-bottom: 1rem;
  font-weight: bold;
}

.window-content .subtitle {
  font-size: 14px;
  color: #404040;
  margin-bottom: 2rem;
}

.window-content .arrow {
  color: #000080;
}

.retro-btn {
  padding: 10px 20px;
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
}

.retro-btn:active {
  border: 2px solid #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

/* Window Footer */
.window-footer {
  padding: 10px 15px;
  background: #c0c0c0;
  border-top: 1px solid #808080;
  text-align: left;
}

.back-to-desktop {
  font-size: 11px;
  padding: 6px 12px;
}

/* Projects Window - Full size */
.projects-window {
  width: 95%;
  max-width: 900px;
  height: 85vh;
  max-height: 700px;
}

.projects-window .window-content {
  height: calc(100% - 70px);
  padding: 0;
  overflow: hidden;
}

.projects-content {
  padding: 15px !important;
  overflow-y: auto;
}

/* Projects Grid - Single column full width */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
}

/* Project Card - Full window width */
.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-card:hover {
  background: #f0f0f0;
}

.project-card:active {
  border: 2px solid #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

/* Project Thumbnail */
.project-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 2px solid #808080;
  background: #c0c0c0;
}

/* Project Info Section */
.project-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-title {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin: 0;
}

.project-link {
  display: inline-block;
  color: #000080;
  text-decoration: underline;
  font-size: 13px;
  font-weight: bold;
}

.project-link:hover {
  color: #fff;
  background: #000080;
  text-decoration: none;
}

/* Coming Soon */
.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  letter-spacing: 3px;
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
}

/* Legal Windows (Imprint & Privacy) */
.legal-window {
  max-width: 600px;
}

.legal-content {
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
  color: #000;
  padding: 20px;
}

/* Language Toggle - Looks like retro-btn but smaller */
.legal-lang-toggle {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #808080;
}

.legal-lang-btn {
  padding: 4px 12px;
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 11px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  min-width: 44px;
}

.legal-lang-btn:active {
  border: 2px solid #404040;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

.legal-lang-btn.active {
  background: #000080;
  color: #fff;
}

.legal-lang-section {
  display: none;
}

.legal-lang-section.active {
  display: block;
}

/* Legal Content Styling with HTML - Compact Spacing */
.legal-content {
  line-height: 1.6;
  padding-top: 10px;
}

.legal-section {
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #c0c0c0;
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Main headings (h2) - Ultra compact spacing */
.legal-heading {
  font-size: 13px;
  font-weight: bold;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 6px;
  padding: 5px 10px;
  background: #e0e0e0;
  border: 2px solid #fff;
  border-right-color: #808080;
  border-bottom-color: #808080;
  border-left: 4px solid #000080;
}

.legal-section .legal-heading:first-child {
  margin-top: 0;
}

/* Subheadings (h3) - Compact spacing */
.legal-subheading {
  font-size: 12px;
  font-weight: bold;
  color: #000080;
  margin: 10px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #c0c0c0;
}

/* Paragraph text - Compact spacing */
.legal-text {
  color: #000;
  line-height: 1.6;
  margin: 8px 0;
}

/* Address blocks - Ultra compact */
.legal-address {
  background: #f5f5f5;
  border: 1px solid #c0c0c0;
  padding: 8px 12px;
  margin: 6px 0 2px 0;
  line-height: 1.4;
}

.legal-address p {
  margin: 2px 0;
  color: #000;
  line-height: 1.4;
}

/* Contact info blocks - Ultra compact */
.legal-contact-info {
  background: #f5f5f5;
  border: 1px solid #c0c0c0;
  padding: 8px 12px;
  margin: 2px 0 4px 0;
}

.legal-contact-info p {
  margin: 3px 0;
  color: #000;
  line-height: 1.4;
}

/* Lists with compact spacing */
.legal-list {
  margin: 10px 0;
  padding-left: 0;
  list-style: none;
}

.legal-list li {
  margin: 6px 0;
  padding-left: 24px;
  position: relative;
  color: #000;
  line-height: 1.5;
}

.legal-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #000080;
  font-weight: bold;
  font-size: 16px;
}

.legal-link {
  color: #000080;
  text-decoration: underline;
}

.legal-link:hover {
  color: #000;
  background: #ffff00;
}

/* Contact Window Styles - Proper Spacing */
.contact-section {
  padding: 15px 0;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  margin-bottom: 20px;
  background: #f5f5f5;
  border: 2px solid #fff;
  border-right-color: #808080;
  border-bottom-color: #808080;
}

.contact-row:last-child {
  margin-bottom: 0;
}

.contact-icon {
  font-size: 36px;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
}

.contact-details {
  flex: 1;
}

.contact-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.contact-value {
  font-size: 15px;
  color: #000;
  font-weight: bold;
}

/* Socials Grid */
.socials-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #fff;
  border: 1px solid #808080;
  font-size: 12px;
  color: #000;
  cursor: pointer;
  transition: background 0.1s;
}

.social-item:hover {
  background: #000080;
  color: #fff;
}

.social-item:hover .social-username {
  color: #c0c0c0;
}

.social-icon {
  font-size: 24px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

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

.social-platform {
  font-weight: bold;
  font-size: 13px;
}

.social-username {
  font-size: 11px;
  color: #666;
}

/* Taskbar */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 4px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  gap: 8px;
}

.start-btn {
  padding: 4px 12px;
  background: #c0c0c0;
  border: 2px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

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

.taskbar-items {
  flex: 1;
  display: flex;
  gap: 4px;
}

.task-item {
  padding: 4px 12px;
  background: #d4d4d4;
  border: 1px solid #808080;
  font-size: 11px;
  cursor: pointer;
}

.task-item.active {
  background: #fff;
  border: 1px solid #000;
}

.footer-links {
  display: flex;
  gap: 15px;
  padding-right: 10px;
}

.footer-links a {
  font-size: 11px;
  color: #404040;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

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

/* Hide original elements */
.gallery-container {
  display: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 600px) {
  .boot-screen {
    padding: 40px 20px;
  }
  
  .boot-logo {
    font-size: 18px;
  }
  
  .dos-line {
    font-size: 1.2rem;
  }
  
  .desktop-icons {
    top: 45px;
    left: 10px;
  }
  
  .icon-graphic {
    font-size: 24px;
  }
  
  .window {
    width: 95%;
    max-width: none;
  }
  
  .window-content {
    padding: 20px;
  }
  
  .window-content h1 {
    font-size: 1.5rem;
  }
  
  /* Projects window mobile adjustments */
  .projects-window {
    width: 98%;
    height: 90vh;
    max-height: none;
  }
  
  .projects-window .window-content {
    padding: 10px !important;
  }
  
  .project-card {
    margin-bottom: 15px;
  }
  
  .project-thumbnail {
    aspect-ratio: 4 / 3;
  }
  
  .project-info {
    padding: 15px;
    gap: 8px;
  }
  
  .project-title {
    font-size: 16px;
  }
  
  .project-link {
    font-size: 12px;
  }
}
