/* style.css – separate file, no inline styles */

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

body {
  background-color: #212121;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: #ffffff;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER (your developer / your vision) */
.site-header {
  background-color: #212121;
  padding: 3.5rem 0 2.5rem 0;
  border-bottom: 1px solid #e9edf2;
}

.headline-main {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.headline-sub {
  font-size: 2.2rem;
  font-weight: 400;
  color: #8c8c8c;
  display: inline-block;
  margin-top: 0.2rem;
}

.hero-description {
  font-size: 1.2rem;
  color: #ffffff;
  max-width: 700px;
  margin: 1.5rem 0 2rem 0;
}

.cta-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta {
  background-color: #313131;
  color: white;
  padding: 0.7rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.2s;
  display: inline-block;
}

.cta:hover {
  background-color: #cbcbcb;
}



/* FEATURED SECTION */
.featured-section {
  padding: 3.5rem 0 2.5rem 0;
  background-color: #212121;
}

.section-title {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #8c8c8c;
  margin-bottom: 2.5rem;
}

/* project grid – exactly 2 columns on desktop, 1 on mobile */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.8rem;
  margin: 2rem 0 1.5rem;
}

.project-card {
  background-color: #313131;
  border: 1px solid #414141;
  border-radius: 24px;
  padding: 1.6rem 1.5rem;
  transition: box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.03), 0 0 0 2px #e1e8f0;
}

.project-name {
  font-size: 1.4rem;
  font-weight: 650;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.project-desc {
  color: #8c8c8c;
  margin-bottom: 1.2rem;
  font-size: 0.98rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #d0d9e8;
  padding-top: 1rem;
  font-size: 0.95rem;
}

.project-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid #b7c9e2;
}

.project-link:hover {
  color: #616161;
  border-bottom-color: #515151;
}

.project-updated {
  color: #8c8c8c;
  font-size: 0.9rem;
}

/* view all button */
.view-all-wrapper {
  text-align: center;
  margin: 2.8rem 0 1rem;
}

.view-all-link {
  display: inline-block;
  background: #313131;
  border: 1.5px solid #515151;
  color: #ffffff;
  font-weight: 600;
  padding: 0.7rem 2.8rem;
  border-radius: 40px;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.2s;
}

.view-all-link:hover {
  background: #414141;
  color: white;
}

/* CONNECT SECTION (let's connect) */
.connect-section {
  background-color: #212121;
  padding: 3.5rem 0;
  border-top: 1px solid #dee5ed;
  border-bottom: 1px solid #dee5ed;
}

.connect-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  margin-top: 2.2rem;
  justify-content: center;
  justify-self: center;
}

.connect-item {
  background-color: #313131;
  border-radius: 36px;
  padding: 1rem 2rem 1rem 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  border: 1px solid #e0e8f0;
  min-width: 240px;
  flex: 0 1 auto;
  justify-self: center;
}

.connect-icon {
  font-size: 2rem;
  line-height: 1;
}

.connect-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  color: #ffff;
}

.connect-content p {
  color: #8c8c8c;
  font-size: 0.9rem;
}

/* FOOTER (junior dev signature) */
.site-footer {
  background: #313131;
  padding: 1.8rem 0;
  text-align: center;
  color: #ffffff;
  border-top: 1px solid #e9edf2;
  font-size: 0.95rem;
  bottom: 0;
}

.site-footer p {
  opacity: 0.85;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .headline-main {
    font-size: 2.4rem;
  }
  .headline-sub {
    font-size: 1.7rem;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .stats-flex {
    justify-content: center;
  }
  .connect-item {
    width: 100%;
    justify-content: center;
  }
  .cta-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}