:root {
  --bg-color: #050505;
  --text-primary: #e0e0e0;
  --text-secondary: #888;
  --accent-color: #ccff00; /* Acid Green */
  --accent-secondary: #7000ff; /* Electric Violet */
  --border-color: #333;
  --card-bg: #0a0a0a;
  --font-heading: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --container-width: 1200px;
  --spacing-section: 100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-heading);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Grid Background */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(rgba(51, 51, 51, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 51, 51, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--border-color);
}

.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a::before {
  content: ">";
  position: absolute;
  left: -15px;
  opacity: 0;
  color: var(--accent-color);
  transition: opacity 0.2s;
}

/* Navigation Toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--accent-color);
  height: 2px;
  width: 25px;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}

.nav-toggle-label span::before {
  top: -8px;
}

.nav-toggle-label span::after {
  top: 8px;
}

/* Mobile Navigation Animation */
.nav-toggle:checked ~ .nav-links {
  transform: scale(1, 1);
  opacity: 1;
}

.nav-toggle:checked ~ .nav-toggle-label span {
  background: transparent;
}

.nav-toggle:checked ~ .nav-toggle-label span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle:checked ~ .nav-toggle-label span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px; /* Increased for fixed header */
  padding-bottom: 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.greeting {
  font-family: var(--font-mono);
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 1rem;
}

.glitch-text {
  font-size: 5rem;
  line-height: 0.9;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
  color: var(--text-primary);
}

.role-title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-weight: 400;
}

.blink {
  animation: blink 1s infinite;
}

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

.hero-summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 40px;
  border-left: 2px solid var(--accent-color);
  padding-left: 20px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.btn {
  padding: 15px 30px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #000;
  border: 1px solid var(--accent-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-color);
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.social-matrix {
  display: flex;
  gap: 20px;
}

.social-matrix a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
}

.social-matrix a:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.image-frame {
  position: relative;
  width: 400px;
  height: 500px;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
  transition: filter 0.3s;
}

.image-frame:hover img {
  filter: grayscale(0%) contrast(1);
}

.frame-decor {
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent-color);
  z-index: -1;
}

.location-badge {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--card-bg);
  padding: 5px 10px;
  border: 1px solid var(--border-color);
}

/* Sections */
.section-wrapper {
  padding: var(--spacing-section) 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 60px;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-color);
  text-transform: uppercase;
}

/* Experience Grid */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  background-color: var(--border-color); /* Creates borders between items */
  border: 1px solid var(--border-color);
}

.experience-card {
  background-color: var(--bg-color);
  padding: 30px;
  transition: background-color 0.3s;
}

.experience-card:hover {
  background-color: var(--card-bg);
}

.exp-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-color);
  display: block;
  margin-bottom: 5px;
}

.exp-role {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.exp-company {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.exp-loc {
  color: var(--text-secondary);
}

.exp-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}

.bullet {
  color: var(--accent-color);
  font-family: var(--font-mono);
}

/* Skills Terminal */
.skills-terminal {
  background-color: #000;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  background-color: #1a1a1a;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background-color: #ff5f56;
}
.yellow {
  background-color: #ffbd2e;
}
.green {
  background-color: #27c93f;
}

.terminal-title {
  margin-left: 10px;
  font-size: 0.8rem;
  color: #888;
}

.terminal-body {
  padding: 20px;
}

.skill-row {
  margin-bottom: 20px;
}

.prompt {
  color: var(--accent-color);
  margin-right: 10px;
}

.cmd {
  color: #fff;
}

.output {
  margin-top: 10px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 20px;
}

.skill-tag {
  color: var(--accent-secondary);
  margin-right: 10px;
}

/* Education & Certs */
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.brutalist-card {
  position: relative;
  padding: 30px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.card-border {
  position: absolute;
  top: 5px;
  left: 5px;
  right: -5px;
  bottom: -5px;
  border: 1px solid var(--accent-color);
  pointer-events: none;
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
}

.brutalist-card h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.institution {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
}

.cert-item:hover {
  border-color: var(--accent-color);
  background: var(--card-bg);
}

.cert-icon {
  color: var(--accent-color);
  font-size: 1.5rem;
}

.cert-info h3 {
  font-size: 1rem;
  margin-bottom: 3px;
}

.cert-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.cert-arrow {
  margin-left: auto;
  font-family: var(--font-mono);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s;
}

.cert-item:hover .cert-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-color);
}

/* Footer */
.site-footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --container-width: 90%;
    --spacing-section: 60px;
  }

  .hero-grid {
    gap: 40px;
  }

  .glitch-text {
    font-size: 4rem;
  }

  .section-number {
    font-size: 3rem;
  }
}

@media (max-width: 900px) {
  .site-header nav {
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    transform: scale(1, 0);
    transform-origin: top;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    overflow: hidden;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
  }

  .nav-links a::before {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    align-items: center;
    margin-top: 40px;
  }

  .hero-actions,
  .social-matrix {
    justify-content: center;
  }

  .hero-summary {
    margin: 0 auto 40px;
    border-left: none;
    border-top: 2px solid var(--accent-color);
    padding-top: 20px;
    padding-left: 0;
  }

  .glitch-text {
    font-size: 3rem;
  }

  .image-frame {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 4/5;
  }

  .grid-2-col,
  .experience-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .glitch-text {
    font-size: 2.2rem;
  }

  .role-title {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .social-matrix {
    flex-wrap: wrap;
    gap: 15px;
  }

  .experience-card {
    padding: 20px;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .exp-role {
    font-size: 1.2rem;
  }
}

/* Blog Post Styles */
.post-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.post-content h2 {
  font-family: var(--font-mono);
  color: var(--accent-color);
  margin: 40px 0 20px;
  font-size: 1.5rem;
}

.post-content h3 {
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin: 30px 0 15px;
  font-size: 1.2rem;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content a {
  color: var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
}

.post-content a:hover {
  background-color: rgba(204, 255, 0, 0.1);
}

.post-content code {
  background-color: #1a1a1a;
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--font-mono);
  color: var(--accent-color);
  font-size: 0.9em;
}

.post-content pre {
  background-color: #0a0a0a;
  padding: 20px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
  margin-bottom: 30px;
  /* Fallback styles for old Hugo version */
  color: #e0e0e0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
}

.post-content pre code {
  background-color: transparent;
  padding: 0;
  color: #e0e0e0;
}

.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
  list-style-position: outside;
}

.post-content ul {
  list-style-type: disc;
}

.post-content ol {
  list-style-type: decimal;
}

.post-content ul ul {
  list-style-type: circle;
  margin-top: 10px;
}

.post-content ul ul ul {
  list-style-type: square;
}

.post-content ol ol {
  list-style-type: lower-alpha;
  margin-top: 10px;
}

.post-content li {
  margin-bottom: 10px;
  line-height: 1.6;
  padding-left: 5px;
}

.post-content li > ul,
.post-content li > ol {
  margin-bottom: 10px;
}

/* Task Lists (Checkboxes) */
.post-content input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
  accent-color: var(--accent-color);
}

.post-content li:has(input[type="checkbox"]) {
  list-style-type: none;
  margin-left: -20px;
}

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-family: var(--font-mono);
  font-size: 0.9em;
  overflow-x: auto;
  display: block;
}

.post-content table thead {
  background-color: var(--card-bg);
}

.post-content table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 700;
  color: var(--accent-color);
  border: 1px solid var(--border-color);
  border-bottom: 2px solid var(--accent-color);
}

.post-content table td {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
}

.post-content table tbody tr:hover {
  background-color: rgba(204, 255, 0, 0.05);
}

.post-content table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Blockquotes */
.post-content blockquote {
  border-left: 3px solid var(--accent-color);
  padding-left: 20px;
  padding: 15px 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--text-secondary);
  background-color: rgba(204, 255, 0, 0.05);
  border-radius: 2px;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content blockquote blockquote {
  margin-top: 15px;
  border-left-color: var(--accent-secondary);
}

/* Horizontal Rules */
.post-content hr {
  border: none;
  border-top: 2px solid var(--border-color);
  margin: 40px 0;
  background: linear-gradient(
    to right,
    var(--border-color) 0%,
    var(--accent-color) 50%,
    var(--border-color) 100%
  );
  height: 2px;
}

/* Keyboard Shortcuts */
.post-content kbd {
  background-color: #1a1a1a;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--border-color);
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--text-primary);
  display: inline-block;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  margin: 2rem 0;
  display: block;
}

/* Code Highlighting Improvements */
.post-content pre code {
  background-color: transparent;
  padding: 0;
  color: #e0e0e0;
}

.post-content h2 {
  margin-top: 50px;
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--accent-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.post-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.post-content h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.post-content strong {
  color: var(--accent-color);
  font-weight: 700;
}

.post-content em {
  color: var(--text-secondary);
  font-style: italic;
}

.post-content del {
  text-decoration: line-through;
  color: #666;
}
