/* style.css */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #09090b;
  color: white;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* HEADER */

.header {
  border-bottom: 1px solid #27272a;
  position: sticky;
  top: 0;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
}

.subtitle {
  color: #a1a1aa;
  font-size: 0.95rem;
}

.github-btn {
  background: white;
  color: black;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  font-weight: bold;
  transition: 0.2s;
}

.github-btn:hover {
  transform: translateY(-2px);
}

/* HERO */

.hero {
  padding: 5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  border: 1px solid #27272a;
  background: #18181b;
  color: #d4d4d8;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
}

.hero-text {
  color: #a1a1aa;
  margin-top: 1.5rem;
  font-size: 1.15rem;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-btn,
.secondary-btn {
  padding: 1rem 1.4rem;
  border-radius: 18px;
  font-weight: bold;
  transition: 0.2s;
}

.primary-btn {
  background: white;
  color: black;
}

.secondary-btn {
  border: 1px solid #3f3f46;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

/* STATS */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  border: 1px solid #27272a;
  background: #18181b;
  border-radius: 24px;
  padding: 2rem;
}

.stat-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* PROJECTS */

.projects-section {
  padding-bottom: 6rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
}

.section-subtitle {
  color: #a1a1aa;
}

#search {
  background: #18181b;
  border: 1px solid #27272a;
  color: white;
  padding: 1rem;
  border-radius: 16px;
  min-width: 260px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  border: 1px solid #27272a;
  background: #18181b;
  border-radius: 28px;
  padding: 2rem;
  transition: 0.25s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #52525b;
}

.project-category {
  display: inline-block;
  background: #27272a;
  color: #d4d4d8;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.project-description {
  color: #a1a1aa;
  margin-bottom: 1.5rem;
}

.project-link {
  color: white;
  font-weight: bold;
}

/* FOOTER */

.footer {
  border-top: 1px solid #27272a;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #71717a;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {

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

  .hero-title {
    font-size: 3rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #search {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

}