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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-accent: #f5f5f5;
  --text-primary: #000000;
  --text-secondary: #333333;
  --text-muted: #666666;
  --border-primary: #000000;
  --accent-primary: #000000;
  --accent-secondary: #333333;
  --accent-code: #000000;
  --border-secondary: #cccccc;
  --shadow-accent: rgba(0, 0, 0, 0.1);
  --border-width: 1px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Courier New", Courier, monospace;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  position: relative;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
}

/* Header */
header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-primary);
  padding-bottom: 20px;
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100px;
  height: 1px;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-pic {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border-primary);
  object-fit: cover;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.profile-pic:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px var(--shadow-accent);
}

.header-text {
  flex: 1;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

header h1 a {
  color: var(--text-primary);
  text-decoration: none;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 1px;
}

/* Navigation Bar */
nav {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  padding: 20px;
  margin-bottom: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 16px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  display: block;
}

nav ul li a:hover,
nav ul li a:focus {
  border-color: var(--accent-primary);
  background-color: var(--bg-primary);
  outline: 1px solid var(--accent-primary);
  outline-offset: 2px;
}

nav ul li a:focus {
  outline: 1px solid var(--accent-primary);
}

/* Main Content */
main {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* Panes */
.pane {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  padding: 30px;
  position: relative;
  transition: all 0.3s ease;
}

.pane:hover {
  box-shadow: 0 0 20px var(--shadow-accent);
}

.pane h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-secondary);
  padding-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
}

.pane h2::before {
  content: ">";
  position: relative;
  left: -5px;
  color: var(--accent-primary);
}

.content {
  padding-top: 10px;
}

/* Writings Section */
.post {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-secondary);
  position: relative;
  padding-left: 15px;
}

.post::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
  font-size: 1.2rem;
}

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

.post h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.post h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.post h3 a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  transition: width 0.3s ease;
}

.post h3 a:hover::after {
  width: 100%;
}

.post h3 a:hover {
  color: var(--text-secondary);
  text-shadow: 0 0 10px var(--shadow-accent);
}

.post .date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.post .categories {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.category-tag:hover {
  background-color: var(--border-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 8px var(--shadow-accent);
  transform: translateY(-1px);
}

.post p:last-child {
  color: var(--text-secondary);
}

/* Categories Section */
.category-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.category-list li {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-primary);
  padding: 12px 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--shadow-accent),
    transparent
  );
  transition: left 0.5s ease;
}

.category-list li:hover::before {
  left: 100%;
}

.category-list li:hover {
  background-color: var(--border-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px var(--shadow-accent);
  transform: translateY(-2px);
}

.category-list li a {
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.category-list li:hover a {
  color: var(--bg-primary);
  text-shadow: 0 0 10px var(--accent-primary);
}

/* Contact Section */
.contact-links {
  margin-top: 20px;
}

.contact-links p {
  margin-bottom: 15px;
  font-size: 1rem;
  position: relative;
  padding-left: 10px;
}

.contact-links p::before {
  content: "◆";
  position: absolute;
  left: -5px;
  color: var(--accent-primary);
}

.contact-links strong {
  display: inline-block;
  min-width: 100px;
  font-weight: 600;
  letter-spacing: 1px;
}

.contact-links a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.contact-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.contact-links a:hover::after {
  width: 100%;
}

.contact-links a:hover {
  color: var(--text-secondary);
  text-shadow: 0 0 5px var(--shadow-accent);
}

/* Footer */
footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border-secondary);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 30px 15px;
  }

  .profile-pic {
    width: 60px;
    height: 60px;
  }

  .header-content {
    gap: 15px;
  }

  header h1 {
    font-size: 2rem;
  }

  nav {
    padding: 15px;
  }

  nav ul {
    gap: 15px;
  }

  nav ul li a {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .pane {
    padding: 20px;
  }

  .pane h2 {
    font-size: 1.5rem;
  }

  .category-list {
    grid-template-columns: 1fr;
  }

  .contact-links strong {
    display: block;
    margin-bottom: 5px;
  }
}

@media (max-width: 480px) {
  .profile-pic {
    width: 50px;
    height: 50px;
  }

  .header-content {
    gap: 12px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  nav ul {
    gap: 10px;
  }

  nav ul li {
    flex: 1 1 auto;
  }

  nav ul li a {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  .post h3 {
    font-size: 1.1rem;
  }
}
