/* CSS Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: #f0f6fc;
  background-color: #0d1117;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.mono {
  font-family:
    "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
  color: #f0f6fc;
}

h2 {
  font-size: 1.5rem;
  color: #f0f6fc;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  color: #f0f6fc;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: #8b949e;
}

/* Terminal Header */
.terminal-header {
  background-color: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.terminal-prompt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  text-align: center;
}

.user {
  color: #58a6ff;
}
.at {
  color: #8b949e;
}
.host {
  color: #58a6ff;
}
.separator {
  color: #8b949e;
}
.path {
  color: #3fb950;
}
.dollar {
  color: #f0f6fc;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 16px;
  padding: 0 1.25rem;
  width: 90%;
}

/* Terminal Commands */
.terminal-command {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #8b949e;
}

.terminal-command .prompt {
  color: #58a6ff;
}

.terminal-command .command {
  color: #f0f6fc;
}

/* Section Styling */
section {
  margin-bottom: 5rem;
  scroll-margin-top: 4rem;
}

.section-content {
  padding-left: 1rem;
  border-left: 2px solid #30363d;
  margin-left: 0.5rem;
}

/* About Section */
.about-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #30363d;
  object-fit: cover;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.avatar:hover {
  border-color: #58a6ff;
  transform: scale(1.05);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-text h1 {
  margin: 0;
}

.about-section .role {
  font-size: 1.25rem;
  color: #3fb950;
  margin: 0;
}

.bio {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #c9d1d9;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  background-color: #161b22;
  color: #58a6ff;
  padding: 0.5rem 0.875rem;
  border: 1px solid #30363d;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 0.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: #58a6ff;
}

.project-title {
  color: #f0f6fc;
  margin-bottom: 1rem;
}

.project-description {
  color: #8b949e;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

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

.project-tech code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  background-color: #0d1117;
  color: #3fb950;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #30363d;
}

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

.project-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  text-align: center;
  color: #58a6ff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid #58a6ff;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.project-link:hover {
  background-color: #58a6ff;
  color: #0d1117;
}

/* Contact Section */
.contact-intro {
  color: #c9d1d9;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #f0f6fc;
  text-decoration: none;
  font-size: 1.125rem;
  padding: 1rem;
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background-color: #21262d;
  border-color: #58a6ff;
  color: #58a6ff;
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

/* Focus States */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
}

/* Responsive Design */
@media (min-width: 48rem) {
  .container {
    padding: 0 2.5rem;
  }

  .about-header {
    flex-direction: row;
    align-items: center;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .contact-link {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    justify-content: center;
  }

  section {
    margin-bottom: 6rem;
  }
}

@media (min-width: 64rem) {
  .container {
    width: 85%;
  }

  h1 {
    font-size: 2.5rem;
  }

  .bio {
    font-size: 1.25rem;
  }

  .terminal-command {
    font-size: 1.125rem;
  }
}
