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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  min-height: 100vh;
}

.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.greeting {
  font-size: 18px;
  color: #888;
  margin-bottom: 8px;
  font-weight: 400;
}

.name {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.tagline {
  font-size: 20px;
  color: #aaa;
  margin-bottom: 40px;
  font-weight: 300;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
  min-height: 40px; /* Added min-height for layout stability */
  flex-wrap: nowrap; /* Force items to stay on same line */
}

.status-left {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
  min-width: 0; /* Added min-width to ensure consistent spacing */
}

.location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #888;
  font-size: 14px;
}

.time {
  color: #888;
  font-size: 14px;
}

.activity {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #888;
  font-size: 14px;
}

.headphones {
  width: 20px;
  height: 20px;
  background: #333;
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.headphones::before {
  content: "🎧";
  font-size: 14px;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(
    20,
    8px
  ); /* Increased from 6px to 8px for larger grid */
  gap: 2px; /* Increased gap from 1px to 2px */
  margin-left: 20px;
  flex-shrink: 0; /* Prevent grid from shrinking */
  width: fit-content; /* Added fixed positioning to prevent layout shifts */
  align-self: center;
}

.contribution-day {
  width: 8px; /* Increased from 6px to 8px */
  height: 8px; /* Increased from 6px to 8px */
  border-radius: 1px;
  background: #333;
}

.contribution-day.active-1 {
  background: #555;
}
.contribution-day.active-2 {
  background: #777;
}
.contribution-day.active-3 {
  background: #999;
}
.contribution-day.active-4 {
  background: #fff;
}

.profile-image {
  width: 150px; /* Reduced from 200px to 150px to match reference size */
  height: 150px; /* Reduced from 200px to 150px */
  border-radius: 16px; /* Changed from 50% (circular) to 16px (rounded square) */
  background: linear-gradient(135deg, #333 0%, #111 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  object-fit: cover; /* Added for proper image scaling */
}

.section {
  margin-bottom: 80px;
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 40px;
  position: relative;
}

.section-title::before {
  content: "—";
  color: #666;
  margin-right: 16px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  font-size: 16px;
  line-height: 1.8;
  color: #ccc;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.tool-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool-card:hover {
  background: #1a1a1a;
  border-color: #333;
  transform: translateY(-2px);
}

.tool-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
  font-weight: bold;
}

.tool-card[data-tool="go"] .tool-icon {
  color: #00add8;
}
.tool-card[data-tool="python"] .tool-icon {
  color: #3776ab;
}
.tool-card[data-tool="nodejs"] .tool-icon {
  color: #339933;
}
.tool-card[data-tool="cpp"] .tool-icon {
  color: #00599c;
}
.tool-card[data-tool="aws"] .tool-icon {
  color: #ff9900;
}
.tool-card[data-tool="postgres"] .tool-icon {
  color: #3776ab;
}

.tool-name {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.project-card:hover {
  background: #222;
  border-color: #444;
}

.project-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.project-description {
  color: #aaa;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tag {
  background: #333;
  color: #ccc;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-link {
  color: #888;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-link:hover {
  color: #fff;
}

.contact-content {
  margin-bottom: 40px;
}

.contact-text {
  font-size: 16px;
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 30px;
}

.contact-email {
  color: #fff;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

.social-link {
  width: 48px;
  height: 48px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #222;
  border-color: #444;
  color: #fff;
}

.spotify-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  font-size: 13px;
  color: #aaa;
}

.spotify-track {
  color: #fff;
  font-weight: 500;
}

.spotify-artist {
  color: #888;
  font-size: 12px;
}

@media (max-width: 768px) {
  .container {
    padding: 40px 20px;
  }

  .hero-section {
    flex-direction: column;
    gap: 40px;
  }

  .name {
    font-size: 48px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap; /* Only allow wrapping on mobile screens */
  }

  .status-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contribution-grid {
    margin-left: 0;
    grid-template-columns: repeat(15, 8px);
  }

  .social-links {
    gap: 12px;
  }

  .social-link {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}
