/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0f172a;
  color: white;
  text-align: center;
  padding-top: 70px; /* FIX NAV OVERLAP */
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #1e293b;
  display: flex;
  justify-content: space-between;
  padding: 15px 30px;
  z-index: 1000;
}

nav a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* FIX CENTERING */
}

.hero span {
  color: #38bdf8;
}

.btn {
  margin-top: 20px;
  padding: 10px 18px;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}

.btn-green {
  background: #22c55e;
  margin-left: 10px;
}

/* SECTIONS */
section {
  section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}
}

/* GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

/* CARD */
.card {
  background: #1e293b;
  padding: 20px;
  border-radius: 12px;
  text-align: left;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

/* TAGS */
.tags {
  margin-top: 10px;
}

.tag {
  display: inline-block;
  background: #0f172a;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin: 3px;
  color: #94a3b8;
}

/* SCREENSHOTS FIX */
.screenshots {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 10px;
}

.screenshots img {
  width: 130px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #334155;
  flex-shrink: 0;
  transition: 0.3s ease;
}

.screenshots img:hover {
  transform: scale(1.05);
}

/* FOOTER */
footer {
  padding: 20px;
  background: #1e293b;
  margin-top: 40px;
}