:root {
  /* Spacing variables */
  --spacing-xs: 8px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 50px;
  --spacing-2xl: 60px;
  
  /* Size variables */
  --profile-size: 200px;
  --profile-size-mobile: 150px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  /* One Dark Color Palette */
  --grey1: hsl(220, 9%, 55%);
  --blue: hsl(207, 82%, 66%);
  --purple: hsl(286, 60%, 67%);
  --green: hsl(95, 38%, 62%);
  --red1: hsl(355, 65%, 65%);
  --orange2: hsl(39, 67%, 69%);
  
  /* Border colors */
  --color-border-light: hsla(220, 13%, 30%, 0.4);
  --color-border: hsla(220, 13%, 35%, 0.6);
  
  /* Background and text */
  --color-bg-main: hsl(220, 13%, 18%);
  --color-bg-section: hsla(220, 13%, 22%, 0.95);
  --color-bg-code: hsla(220, 13%, 15%, 0.6);
  --color-text: hsl(220, 14%, 71%);
}

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

body {
  font-family: 'Fira Code', monospace;
  background: var(--color-bg-main);
  color: var(--color-text);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Shared button styles */
.btn-code {
  padding: var(--spacing-sm) 18px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-code);
  font-family: 'Fira Code', monospace;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.1s ease;
}

.btn-code:hover {
  background: hsla(220, 13%, 18%, 0.8);
  border-color: var(--red1);
  transform: translateY(-2px);
}

.btn-code:focus {
  outline: 2px solid var(--red1);
  outline-offset: 2px;
}

.btn-code:focus:not(:focus-visible) {
  outline: none;
}

.btn-code:focus-visible {
  outline: 2px solid var(--red1);
  outline-offset: 2px;
}

.container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: var(--spacing-md);
}

.profile-section {
  text-align: center;
  background: var(--color-bg-section);
  padding: var(--spacing-xl) var(--spacing-2xl);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border-light);
}

.profile-photo {
  width: var(--profile-size);
  height: var(--profile-size);
  margin: 0 auto var(--spacing-lg);
  border-radius: 50%;
  overflow: hidden;
  padding: 3px;
  background: var(--red1);
  transition: transform 0.2s ease, box-shadow 0.1s ease;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

h1 {
  font-size: 2.5em;
  margin-bottom: var(--spacing-sm);
  color: var(--orange2);
  font-family: 'Fira Code', monospace;
  font-weight: 600;
}

.code-block {
  background: var(--color-bg-code);
  padding: var(--spacing-md) 24px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border-light);
  margin-bottom: var(--spacing-lg);
}

.tagline {
  font-size: 1.2em;
  margin-bottom: var(--spacing-md);
  font-weight: 300;
  font-family: 'Fira Code', monospace;
  text-align: left;
}

.tagline .keyword {
  color: var(--purple);
}

.tagline .string {
  color: var(--green);
}

.tagline .separator {
  color: var(--grey1);
}

.description {
  font-size: 1.1em;
  margin-bottom: 0;
  font-weight: 300;
  font-family: 'Fira Code', monospace;
  line-height: 1.6;
  text-align: left;
}

.description .keyword {
  color: var(--purple);
}

.description .function {
  color: var(--blue);
}

.description .string {
  color: var(--green);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--red1);
  text-decoration: none;
  font-weight: 400;
}

.social-link:focus {
  outline: 2px solid var(--red1);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

.social-link:focus:not(:focus-visible) {
  outline: none;
}

.social-link:focus-visible {
  outline: 2px solid var(--red1);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

.link-icon {
  font-size: 1.2em;
}

.link-bracket {
  color: var(--grey1);
}

.link-text {
  color: var(--green);
}

@media (max-width: 768px) {
  .profile-section {
    padding: 40px var(--spacing-lg);
  }

  .profile-photo {
    width: var(--profile-size-mobile);
    height: var(--profile-size-mobile);
  }

  h1 {
    font-size: 2em;
  }

  .tagline {
    font-size: 1em;
  }

  .social-links {
    flex-direction: column;
    align-items: stretch;
  }

  .social-link {
    justify-content: center;
  }
}