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

*,
*::before,
*::after {
  transition:
    background-color 0.6s ease,
    color 0.6s ease,
    border-color 0.6s ease,
    box-shadow 0.6s ease;
}

body {
  font-family: "JetBrains Mono", monospace;
  background-color: var(--background);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  letter-spacing: -0.02em;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  max-width: 100%;
}

.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--overlay);
  border: none;
  color: var(--secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    background 0.6s ease,
    color 0.6s ease;
}

.theme-toggle:hover {
  background: var(--muted);
  color: var(--text);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

h1 {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--primary);
  text-align: center;
  margin: 0 auto;
  margin-bottom: 1rem;
}

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

.social-link {
  color: var(--secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--overlay);
  transition:
    transform 0.2s ease,
    color 0.6s ease,
    background-color 0.6s ease,
    box-shadow 0.6s ease;
}

.social-link:hover {
  transform: translateY(-4px);
  color: var(--accent);
  background: var(--overlay);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background-color 0.6s ease,
    box-shadow 0.2s ease;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: fill 0.1s ease;
}

.github-section,
.github-activity {
  width: 100%;
  max-width: 800px;
  margin-top: 3rem;
}

h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}

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

.repo-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.6s ease,
    color 0.6s ease;
}

.repo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.repo-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--link);
  margin: 0;
}

.language-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  background: var(--overlay);
  color: var(--secondary);
}

.lang-javascript {
  color: var(--gold);
}
.lang-typescript {
  color: var(--pine);
}
.lang-go {
  color: var(--foam);
}
.lang-python {
  color: var(--iris);
}
.lang-ruby {
  color: var(--love);
}
.lang-html {
  color: var(--rose);
}
.lang-css {
  color: var(--pine);
}

.repo-description {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.repo-description.empty {
  font-style: italic;
  opacity: 0.7;
}

.repo-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

.activity-timeline {
  margin-top: 1.5rem;
  border-left: 2px solid var(--overlay);
  padding-left: 1.2rem;
}

.activity-item {
  position: relative;
  padding-bottom: 1.5rem;
  display: flex;
  margin-left: 1.5rem;
}

.activity-item:last-child {
  padding-bottom: 0;
}

.activity-icon {
  position: absolute;
  left: -1.5rem;
  background: var(--overlay);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: var(--accent);
}

.activity-content {
  margin-left: 1rem;
}

.activity-content p {
  margin: 0;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.activity-content a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.3s ease;
}

.activity-content a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.activity-time {
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

.weather-widget {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  margin-top: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  width: fit-content;
}

.weather-icon {
  width: 50px;
  height: 50px;
}

.weather-info {
  margin-left: 0.8rem;
  display: flex;
  flex-direction: column;
}

.weather-temp {
  font-size: 1.2rem;
  font-weight: 500;
}

.weather-location,
.weather-condition {
  font-size: 0.8rem;
  color: var(--secondary);
}

.weather-powered-by {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.breeze-link {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breeze-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.last-updated {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 768px) {
  .profile-img {
    width: 150px;
    height: 150px;
  }

  h1 {
    font-size: 2rem;
  }

  .github-repos {
    grid-template-columns: 1fr;
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.nav-link {
  color: var(--iris);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.nav-link:hover {
  color: var(--rose);
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--rose);
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}
