/* TG Portfolio - Retro Windows 95 Style (Optimized) */

/* CSS Custom Properties - Windows 95 Theme */
:root {
  --win95-teal: #008080;
  --win95-bg: #c0c0c0;
  --win95-border-light: #fff;
  --win95-border-dark: #808080;
  --win95-border-raised: var(--win95-border-light) var(--win95-border-dark) var(--win95-border-dark) var(--win95-border-light);
  --win95-border-inset: var(--win95-border-dark) var(--win95-border-light) var(--win95-border-light) var(--win95-border-dark);
  --win95-blue: #000080;
  --win95-blue-gradient: linear-gradient(90deg, #000080, #1084d0);
  --terminal-green: #33ff00;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
ul, ol { list-style: none; }
body {
  font-family: 'MS Sans Serif', Tahoma, sans-serif;
  background: var(--win95-teal);
  color: #000;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: #0000ff; text-decoration: none; }
a:hover { color: #ff0000; text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Skip Link */
.skip-link { position: fixed; top: -100%; left: 50%; transform: translateX(-50%); background: #c0c0c0; color: #000; padding: 8px 16px; border: 2px solid; border-color: #fff #808080 #808080 #fff; z-index: 5000; font-size: 12px; font-weight: bold; }
.skip-link:focus { top: 16px; outline: 3px dashed #00ffff; outline-offset: 2px; }

/* Content Wrapper */
.content-wrapper { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 20px; }
.desktop-monitor-frame { width: 100%; max-width: 1400px; margin: 0 auto; }
.monitor-bezel { background: #c0c0c0; border: 3px solid; border-color: #dfdfdf #808080 #808080 #dfdfdf; padding: 8px; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #000; }
.monitor-header { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; background: linear-gradient(90deg, #000080, #1084d0); margin-bottom: 4px; }
.monitor-brand { display: flex; align-items: center; gap: 10px; }
.brand-text { font-size: 12px; font-weight: bold; color: #fff; letter-spacing: 0.5px; }
.brand-model { font-size: 11px; color: rgba(255,255,255,0.9); background: rgba(0,0,0,0.3); padding: 2px 6px; }
.monitor-controls { display: flex; gap: 3px; }
.monitor-btn { width: 16px; height: 14px; border: 1px solid; border-color: #fff #808080 #808080 #fff; cursor: pointer; font-size: 10px; color: #000; display: flex; align-items: center; justify-content: center; background: #c0c0c0; }
.monitor-screen-frame { background: #000; padding: 4px; border: 2px solid #808080; }
.monitor-screen-area { background: #fff; min-height: 200px; position: relative; }
.monitor-screen-bottom { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; background: #c0c0c0; border-top: 2px solid; border-color: #808080 #fff #fff #808080; font-size: 10px; color: #000; margin-top: 4px; }
.screen-label { padding: 2px 6px; background: #fff; border: 1px solid #808080; font-size: 9px; }

/* Taskbar */
.desktop-taskbar { display: flex; align-items: center; padding: 4px; background: #c0c0c0; border-top: 2px solid #fff; margin-top: 4px; box-shadow: inset 0 1px 0 #808080; }
.taskbar-start { display: flex; align-items: center; gap: 4px; padding: 2px 8px; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; cursor: pointer; font-size: 11px; font-weight: bold; color: #000; }
.taskbar-start:hover { background: #d8d8d8; }
.taskbar-divider { width: 3px; height: 22px; background: linear-gradient(180deg, #808080, #c0c0c0, #808080); margin: 0 4px; }
.taskbar-apps { display: flex; gap: 2px; flex: 1; }
.taskbar-app { display: flex; align-items: center; gap: 4px; padding: 2px 6px; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; cursor: pointer; font-size: 11px; color: #000; min-width: 90px; }
.taskbar-app.active { border-color: #808080 #fff #fff #808080; background: repeating-linear-gradient(45deg, #c0c0c0, #c0c0c0 2px, #b0b0b0 2px, #b0b0b0 4px); }
.taskbar-tray { display: flex; align-items: center; gap: 6px; padding: 2px 6px; background: #c0c0c0; border: 2px solid; border-color: #808080 #fff #fff #808080; font-size: 11px; color: #000; }
.tray-time { font-family: monospace; font-size: 10px; letter-spacing: 0.5px; }

/* Navigation */
.nav-toggle { display: flex; position: fixed; top: 16px; right: 16px; width: 40px; height: 36px; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; cursor: pointer; z-index: 1100; flex-direction: column; justify-content: center; align-items: center; gap: 3px; }
.nav-toggle:hover { background: #d8d8d8; }
.nav-toggle[aria-expanded="true"] { background: #b0b0b0; border-color: #808080 #fff #fff #808080; }
.hamburger-line { width: 18px; height: 2px; background: #000; transition: transform 0.2s; }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(3px, -3px); }
.main-nav { position: fixed; top: 0; right: 0; width: 260px; height: 100vh; background: #c0c0c0; border-left: 3px solid; border-color: #808080 #fff #fff #808080; z-index: 1000; padding-top: 60px; transform: translateX(100%); transition: transform 0.25s ease; }
.main-nav.open { transform: translateX(0); }
.nav-list { display: flex; flex-direction: column; padding: 6px; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 11px; color: #000; background: transparent; border: 1px solid transparent; text-decoration: none; }
.nav-link:hover { background: #000080; color: #fff; text-decoration: none; }
.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Main Content */
.main-content { background: #fff; }

/* Section Headers */
.section-header { text-align: center; margin-bottom: 24px; padding: 16px 12px; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; }
.section-title { font-size: 1.5rem; font-weight: bold; color: #000; margin-bottom: 4px; }
.section-subtitle { font-family: monospace; font-size: 0.8rem; color: #666; text-transform: uppercase; letter-spacing: 1px; }
.section-divider { width: 50px; height: 2px; background: #000; margin: 12px auto 0; }

/* Hero Section */
.hero-section { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px 20px; background: #fff; position: relative; }
.hero-content { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 900px; width: 100%; align-items: center; }
.hero-text { text-align: center; order: 2; }
.hero-image { order: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-title { font-size: 2.5rem; font-weight: 700; color: #000; margin-bottom: 6px; }
.hero-tagline { font-family: monospace; font-size: 1.25rem; color: #000080; margin-bottom: 20px; }
.hero-description { font-size: 0.95rem; color: #333; line-height: 1.6; margin-bottom: 24px; max-width: 450px; margin-left: auto; margin-right: auto; }
.profile-frame { position: relative; padding: 4px; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; }
.profile-frame::before { content: ''; position: absolute; top: -18px; left: 0; right: 0; height: 16px; background: linear-gradient(90deg, #000080, #1084d0); border: 2px solid; border-color: #fff #808080 #808080 #fff; border-bottom: none; }
.profile-image { width: 180px; height: 180px; object-fit: cover; display: block; }
.hero-location { display: flex; align-items: center; gap: 6px; font-family: monospace; font-size: 0.8rem; color: #666; margin-top: 8px; }
.hero-location svg { width: 14px; height: 14px; }
.retro-button { display: inline-flex; align-items: center; justify-content: center; padding: 8px 24px; font-family: inherit; font-size: 11px; font-weight: bold; color: #000; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; cursor: pointer; text-decoration: none; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080; }
.retro-button:hover { background: #d8d8d8; text-decoration: none; color: #000; }
.retro-button:active { border-color: #808080 #fff #fff #808080; box-shadow: inset 1px 1px 0 #000; background: #b0b0b0; }
.retro-button.primary { background: #000080; color: #fff; }
.retro-button.primary:hover { background: #0000a0; color: #fff; }
.retro-button svg { width: 14px; height: 14px; margin-right: 6px; }
.scroll-indicator { position: absolute; bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: monospace; font-size: 10px; color: #999; letter-spacing: 1px; }
.scroll-arrow { width: 14px; height: 14px; border-right: 2px solid #999; border-bottom: 2px solid #999; transform: rotate(45deg); }

/* Story Section */
.story-section { padding: 32px 16px; background: #fff; }
.character-select { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.character-card { background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; }
.character-header { display: flex; align-items: center; gap: 12px; padding: 12px; background: #c0c0c0; border-bottom: 1px solid #808080; }
.chapter-era { font-family: monospace; font-size: 11px; color: #666; background: #fff; padding: 2px 6px; border: 1px solid #808080; }
.chapter-title { font-size: 14px; font-weight: bold; color: #000; padding: 0 12px; margin-top: 6px; }
.chapter-location { display: flex; align-items: center; gap: 6px; font-family: monospace; font-size: 11px; color: #000080; padding: 0 12px; margin-bottom: 6px; }
.chapter-location svg { width: 12px; height: 12px; }
.chapter-description { font-size: 13px; color: #333; line-height: 1.5; padding: 0 12px; margin-bottom: 6px; }
.chapter-flavor { font-family: monospace; font-size: 12px; color: #666; padding: 8px 12px; background: #fff; border: 1px solid #808080; margin: 6px 12px; font-style: italic; }

/* Skills Section */
.skills-section { padding: 32px 16px; background: #fff; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto 24px; }
.skill-card { display: flex; gap: 14px; padding: 16px; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; }
.skill-icon { width: 48px; height: 48px; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.skill-icon svg { width: 24px; height: 24px; color: #000; }
.skill-name { font-size: 13px; font-weight: bold; color: #000; margin-bottom: 4px; }
.skill-description { font-size: 13px; color: #333; line-height: 1.5; }
.skills-footer { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 12px; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; flex-wrap: wrap; gap: 12px; }
.skills-footer svg { width: 14px; height: 14px; margin-right: 4px; }
.last-updated, .location { display: flex; align-items: center; font-size: 10px; color: #666; }

/* Projects Section */
.projects-section { padding: 32px 16px; background: #fff; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.project-category { background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; padding: 14px; }
.category-title { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #000; color: #33ff00; font-family: monospace; font-size: 12px; margin-bottom: 12px; }
.category-title svg { width: 12px; height: 12px; }
.project-list { display: flex; flex-direction: column; gap: 6px; }
.project-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border: 1px solid #808080; font-size: 12px; color: #000; }
.project-item:hover { background: #000080; color: #fff; }
.project-icon { color: #33ff00; font-size: 10px; }
.project-text { flex: 1; }

/* Contact Section */
.contact-section { padding: 32px 16px; background: #000; }
.contact-container { max-width: 550px; margin: 0 auto; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; }
.dos-header { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; background: linear-gradient(90deg, #000080, #1084d0); }
.dos-title { font-size: 10px; color: #fff; font-weight: bold; }
.dos-buttons { display: flex; gap: 2px; }
.dos-btn { width: 14px; height: 12px; background: #c0c0c0; border: 1px solid; border-color: #fff #808080 #808080 #fff; font-size: 9px; display: flex; align-items: center; justify-content: center; color: #000; }
.dos-content { padding: 20px; background: #000; }
.dos-greeting { font-family: monospace; font-size: 13px; color: #33ff00; margin-bottom: 12px; }
.dos-greeting::before { content: 'C:\> '; }
.dos-subtext { font-family: monospace; font-size: 11px; color: #33ff00; margin-bottom: 20px; opacity: 0.9; }
.dos-cta { margin-top: 20px; }
.dos-cta .retro-button { width: 100%; justify-content: center; }
.contact-option { display: flex; align-items: center; gap: 12px; padding: 12px; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; text-decoration: none; color: #000; margin-bottom: 8px; }
.contact-option:hover { background: #d8d8d8; text-decoration: none; color: #000; }
.contact-option-icon { width: 40px; height: 40px; border: 2px solid; border-color: #fff #808080 #808080 #fff; display: flex; align-items: center; justify-content: center; background: #c0c0c0; }
.contact-option-icon svg { width: 20px; height: 20px; color: #000; }
.option-text { font-size: 11px; font-weight: bold; flex: 1; }
.option-address { font-family: monospace; font-size: 10px; color: #666; }

/* Footer */
.site-footer { padding: 24px 20px; background: var(--win95-teal); text-align: center; }
.footer-content { max-width: 1100px; margin: 0 auto; padding: 12px; background: var(--win95-bg); border: 2px solid; border-color: var(--win95-border-raised); }
.footer-text { font-size: 11px; color: #666; }
.footer-social { display: flex; justify-content: center; gap: 8px; margin: 12px 0; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 28px; background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; color: #000; }
.footer-social a:hover { background: #d8d8d8; }
.footer-social svg { width: 16px; height: 16px; }
.footer-thanks { font-family: monospace; font-size: 11px; color: #333; margin-top: 8px; }

/* Screen Reader Only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Responsive */
@media (min-width: 768px) {
  .hero-content { grid-template-columns: 1fr 1fr; text-align: left; gap: 40px; }
  .hero-text { text-align: left; order: 1; }
  .hero-image { order: 2; }
  .hero-description { margin-left: 0; margin-right: 0; }
  .profile-image { width: 220px; height: 220px; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav { position: relative; width: 100%; height: auto; transform: none; padding-top: 0; border-right: none; background: #c0c0c0; border-bottom: 2px solid; border-color: #fff #808080 #808080 #fff; }
  .nav-list { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 0; padding: 3px; }
  .nav-link { padding: 4px 10px; }
  .profile-image { width: 240px; height: 240px; }
  .character-select { grid-template-columns: repeat(4, 1fr); }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1300px) {
  .content-wrapper { padding: 30px; }
  .monitor-bezel { padding: 10px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-tagline { font-size: 1rem; }
  .profile-image { width: 150px; height: 150px; }
  .character-select, .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .skills-footer { flex-direction: column; text-align: center; }
  .taskbar-apps { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: high) {
  a:focus, button:focus { outline: 3px solid #000; outline-offset: 2px; }
}
@media print {
  .nav-toggle, .main-nav, .desktop-taskbar, .scroll-indicator, .monitor-bezel { display: none !important; }
  body { background: #fff; color: #000; }
  .main-content { border: 1px solid #000; }
}
