/* IE5-Compatible CSS - The ancient art of table-based layouts awakens */

/* Reset for maximum compatibility across the forgotten browsers */
* {
  margin: 0;
  padding: 0;
}

body, h1, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Base styles using hard-coded values instead of CSS variables */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Layout using table-based structure for IE5 compatibility */
.header {
  border-bottom: 1px solid #333333;
  padding: 1em;
  background-color: #121212;
}

.nav {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.nav-logo {
  font-weight: bold;
  font-size: 1.5em;
  float: left;
  color: #e0e0e0;
}

.nav ul {
  float: right;
  list-style: none;
}

.nav ul li {
  display: inline;
  margin-left: 1.5em;
}

.nav a {
  color: #e0e0e0;
}

.nav a:hover,
.nav a.nav-logo:hover {
  color: #5d93ff;
}

.nav a.active {
  color: #5d93ff;
  font-weight: bold;
}

/* Clear floats */
.nav:after {
  content: "";
  display: block;
  clear: both;
}

.main {
  padding: 2em 1em;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.footer {
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
  color: #888888;
  border-top: 1px solid #333333;
}

/* Typography */
h1, h2, h3 {
  color: #e0e0e0;
  margin-bottom: 1em;
}

h1 {
  font-size: 2.5em;
  color: #5d93ff;
}

h2 {
  font-size: 2em;
  border-bottom: 1px solid #333333;
  padding-bottom: 0.5em;
  margin-top: 2.5em;
}

h3 {
  font-size: 1.5em;
  color: #5d93ff;
}

p {
  margin-bottom: 1em;
}

strong {
  color: #5d93ff;
}

/* Home Page Components */
.hero {
  text-align: center;
  margin-bottom: 3em;
}

.subtitle {
  font-size: 1.2em;
  color: #aaaaaa;
  margin-bottom: 1em;
}

/* Table-based layout for skills container (IE5 compatible) */
.skills-container {
  width: 100%;
  border-collapse: separate;
  border-spacing: 15px;
}

.skill-card,
.job,
.project-card {
  background-color: #1e1e1e;
  padding: 1.5em;
  border: 1px solid #333333;
  /* Border radius not supported in IE5, but keeping for other browsers */
}

.skill-card h3 {
  margin-top: 0;
}

/* Experience Page */
.job {
  background-color: #1e1e1e;
  padding: 1.5em;
  border: 1px solid #333333;
  margin-bottom: 2em;
}

.job-details {
  color: #aaaaaa;
  margin-bottom: 1em;
  font-style: italic;
}

.job ul {
  list-style-position: inside;
  list-style-type: disc;
  padding-left: 1em;
}

/* Projects Page */
.projects-container {
  /* Simple block layout instead of grid */
}

.project-card {
  background-color: #1e1e1e;
  padding: 1.5em;
  border: 1px solid #333333;
  margin-bottom: 1.5em;
}

.project-link {
  display: inline-block;
  background-color: #5d93ff;
  color: #121212;
  padding: 0.5em 1em;
  font-weight: bold;
  /* No border-radius or transitions for IE5 */
}

.project-link:hover {
  background-color: #4a7acc;
}

/* Contact Page */
.contact-links {
  list-style: none;
  padding: 0;
}

.contact-links li {
  font-size: 1.1em;
  margin-bottom: 1em;
}

.contact-links a {
  color: #5d93ff;
  text-decoration: underline;
}
