@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=IBM+Plex+Mono:wght@400;500;600&family=Playfair+Display:wght@400;700&display=swap');

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

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #0d0d0d;
  --text-primary: #e8e8e8;
  --text-muted: #666666;
  --accent-green: #00ff41;
  --accent-green-dim: rgba(0, 255, 65, 0.3);
  --border-color: rgba(0, 255, 65, 0.2);
}

html {
  font-size: 16px;
}

body {
  font-family: 'IBM Plex Mono', monospace;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-shadow: 0 0 10px var(--accent-green);
}

.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 200px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  color: var(--accent-green);
  text-shadow: 0 0 20px var(--accent-green);
  margin: 0;
  padding: 0;
  line-height: 1;
}

.logo-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

nav {
  margin-top: 3rem;
  flex-grow: 1;
}

nav ul {
  list-style: none;
}

nav li {
  margin-bottom: 0.5rem;
}

nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-left: 2px solid transparent;
  color: var(--text-muted);
}

nav a:hover,
nav a.active {
  color: var(--accent-green);
  border-left-color: var(--accent-green);
  background: rgba(0, 255, 65, 0.05);
}

nav a.active {
  background: rgba(0, 255, 65, 0.1);
}

.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.main-content {
  flex: 1;
  margin-left: 200px;
  padding: 3rem 4rem;
  max-width: 1200px;
}

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 1rem;
  position: relative;
}

h1::after {
  content: '_';
  animation: blink 1s step-end infinite;
  color: var(--accent-green);
}

@keyframes blink {
  50% { opacity: 0; }
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-green);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.hero {
  margin-bottom: 4rem;
}

.tagline {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 1rem;
}

.tagline::before {
  content: '"';
}

.tagline::after {
  content: '"';
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card,
.project {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.card::before,
.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-green);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.card:hover,
.project:hover {
  border-color: var(--accent-green);
  transform: translateY(-4px);
}

.card:hover::before,
.project:hover::before {
  transform: scaleY(1);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-green);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-green);
}

.card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.section {
  margin-bottom: 4rem;
}

.story {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
}

.story::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  float: left;
  line-height: 0.8;
  margin-right: 0.5rem;
  color: var(--accent-green);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member,
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
}

.team-member h4,
.project h4,
.skill-category h4,
.contact-info h4 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.1em;
  color: var(--accent-green);
}

.team-member h4 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.project h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.skill-category h4 {
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.contact-info h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.team-member .role {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  background: var(--accent-green);
  transform: translateX(-4px);
}

.timeline-item h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--accent-green);
}

.job-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--accent-green);
  font-weight: normal;
}

.timeline-item .company {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-item .period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

.skill-category li::before {
  content: '> ';
  color: var(--accent-green);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: var(--accent-green);
  color: var(--bg-dark);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-green);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info a {
  display: block;
  margin-bottom: 1rem;
}

.est-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  padding: 0.5rem 1rem;
  display: inline-block;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px var(--accent-green);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
    justify-content: flex-start;
  }

  .logo,
  .logo-sub,
  nav {
    align-self: flex-start;
  }

  .sidebar-footer {
    align-self: flex-end;
  }

  .logo {
    font-size: 1.8rem;
  }

  nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  nav a {
    padding: 0.5rem;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  nav a:hover,
  nav a.active {
    border-left: none;
    border-bottom-color: var(--accent-green);
  }

  .sidebar-footer {
    display: block;
    margin-top: auto;
    width: 100%;
    text-align: right;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .main-content {
    margin-left: 0;
    padding: 2rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

#corporate-mode-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.2s ease;
}

#corporate-mode-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

body.corporate-mode {
  background: #ffffff !important;
  color: #000000 !important;
}

body.corporate-mode * {
  background: #ffffff !important;
  color: #000000 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  border-color: #000000 !important;
}

body.corporate-mode .scanline,
body.corporate-mode::before {
  display: none !important;
}

body.corporate-mode a {
  color: #0000cc !important;
  text-decoration: underline !important;
}

body.corporate-mode #corporate-mode-btn {
  background: #ffffff !important;
  border: 1px solid #000000 !important;
  color: #000000 !important;
}

body.corporate-mode #corporate-mode-btn:hover {
  background: #eeeeee !important;
}

body.corporate-mode h1::after {
  color: #000000 !important;
}

body.corporate-mode .card:hover {
  border-color: #000000 !important;
}

body.corporate-mode .card-icon {
  color: #000000 !important;
}

body.corporate-mode .logo {
  color: #000000 !important;
  text-shadow: none !important;
}

body.corporate-mode .logo-sub {
  color: #000000 !important;
}

body.corporate-mode .card::before {
  display: none !important;
}

body.corporate-mode .project::before {
  display: none !important;
}

body.corporate-mode .timeline::before {
  background: #000000 !important;
}

body.corporate-mode .timeline-item::before {
  background: #000000 !important;
}

body.corporate-mode .story::first-letter {
  color: #000000 !important;
}

.blog-post {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 2rem;
}

.blog-post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.blog-post-header h3 {
  flex: 1;
}

.share-button {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.share-button:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.share-button.copied {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.blog-post h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--accent-green);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.blog-content {
  color: var(--text-muted);
  line-height: 1.8;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
  color: var(--accent-green);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-content p {
  margin-bottom: 1rem;
}

.blog-content code {
  background: rgba(0, 255, 65, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

.blog-content pre {
  background: rgba(0, 255, 65, 0.05);
  padding: 1rem;
  overflow-x: auto;
  border-left: 2px solid var(--accent-green);
}

.blog-content pre code {
  background: none;
  padding: 0;
}

.blog-content ul,
.blog-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.blog-content a {
  color: var(--accent-green);
}

.blog-content blockquote {
  border-left: 3px solid var(--accent-green);
  padding-left: 1rem;
  margin-left: 0;
  color: var(--text-muted);
  font-style: italic;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
}

.pagination button:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination .page-info {
  color: var(--text-muted);
  padding: 0.5rem;
}

.mt-075 {
  margin-top: 0.75rem;
}

.mt-1 {
  margin-top: 1rem;
}

.ml-1 {
  margin-left: 1rem;
}

.list-unstyled {
  list-style: none;
}

.list-unstyled li {
  padding: 0.25rem 0;
  color: var(--text-muted);
}

.mt-05 {
  margin-top: 0.5rem;
}
