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

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent-green: #39d353;
  --accent-cyan: #58a6ff;
  --accent-yellow: #f0883e;
  --accent-purple: #bc8cff;
  --border-color: #30363d;
  --terminal-green: #00ff00;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
}

html {
  scroll-behavior: smooth;
}

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

.terminal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section {
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.terminal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  background: var(--bg-tertiary);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

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

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

.terminal-title {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.9rem;
}

.prompt-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.prompt {
  color: var(--accent-green);
  font-weight: 700;
}

.command {
  color: var(--text-primary);
}

.output {
  margin-left: 1rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border-color);
}

/* Hero Section */
.ascii-name {
  font-size: 0.6rem;
  line-height: 1.2;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  white-space: pre;
  overflow-x: auto;
}

.ascii-name .line {
  display: block;
}

.typewriter {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 2s steps(40, end);
}

.typewriter.delay-1 {
  animation-delay: 1s;
  animation-duration: 2.5s;
}

.typewriter.delay-2 {
  animation-delay: 2s;
  animation-duration: 2s;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

.social-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.link-item {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.link-item:hover {
  color: var(--accent-green);
  transform: translateX(4px);
}

.link-item .icon {
  color: var(--text-muted);
  font-weight: 700;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.skill-category {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.category-header {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.bracket {
  color: var(--text-muted);
}

.key {
  color: var(--accent-yellow);
  margin: 0 0.25rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--bg-primary);
  color: var(--accent-green);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.tag:hover {
  background: var(--accent-green);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* Timeline Section */
.timeline {
  margin-top: 1rem;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 110px;
  top: 30px;
  bottom: -2rem;
  width: 2px;
  background: var(--border-color);
}

.timeline-date {
  color: var(--accent-purple);
  font-weight: 700;
  min-width: 100px;
  font-size: 0.85rem;
}

.timeline-content h3 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.timeline-content .company {
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.timeline-content .description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.project-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(88, 166, 255, 0.2);
}

.project-header {
  background: var(--bg-primary);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.project-icon {
  font-size: 1.2rem;
}

.project-name {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.95rem;
}

.project-body {
  padding: 1rem;
}

.project-desc {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: var(--bg-primary);
  color: var(--accent-yellow);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--accent-green);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.project-link:hover {
  color: var(--accent-cyan);
}

/* Contact Section */
.contact-content {
  margin-top: 1rem;
}

.contact-intro {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.contact-methods {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.contact-label {
  color: var(--accent-yellow);
  font-weight: 700;
  min-width: 100px;
}

.contact-value {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a.contact-value:hover {
  color: var(--accent-green);
}

.blink {
  animation: blink 1s step-end infinite;
}

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

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

/* Footer */
.footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-content {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-content p {
  margin-bottom: 0.5rem;
}

.heart {
  color: #ff5f56;
}

.footer-meta a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-meta a:hover {
  color: var(--accent-green);
}

/* Responsive */
@media (max-width: 768px) {
  .terminal-container {
    padding: 1rem 0.5rem;
  }

  .ascii-name {
    font-size: 0.4rem;
  }

  .terminal-body {
    padding: 1rem;
    font-size: 0.8rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline-item:not(:last-child)::after {
    display: none;
  }

  .contact-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .contact-label {
    min-width: auto;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Selection */
::selection {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}
