/* ===========================
   Global
=========================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: #0d1117;
  color: #c9d1d9;
  line-height: 1.6;
}

/* ===========================
   Header
=========================== */
header {
  padding: 70px 20px;
  text-align: center;
}

header h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
  font-weight: 700;
}

header p {
  color: #8b949e;
  font-size: 1.15rem;
}

/* ===========================
   Sections
=========================== */
section {
  max-width: 1150px;
  margin: auto;
  padding: 40px 20px;
}

h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid #30363d;
  padding-bottom: 12px;
}

/* ===========================
   Projects Grid
=========================== */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 30px;
}

/* ===========================
   Cards
=========================== */
.card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 14px;
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.card p {
  color: #8b949e;
  margin-bottom: 18px;
}

/* ===========================
   Links
=========================== */
.links a {
  margin-right: 14px;
  color: #58a6ff;
  text-decoration: none;
  font-weight: 500;
}

.links a:hover {
  text-decoration: underline;
}

/* ===========================
   Footer
=========================== */
footer {
  text-align: center;
  padding: 50px 20px;
  color: #8b949e;
  font-size: 0.9rem;
}
/* ===========================
   Project Images
=========================== */
.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid #30363d;
  background-color: #0d1117;
}
input, select, button {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #30363d;
  background-color: #0d1117;
  color: #c9d1d9;
}

button {
  cursor: pointer;
  background-color: #238636;
  border: none;
  font-weight: 600;
}

button:hover {
  background-color: #2ea043;
}
/* --- Card animations --- */
.card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  box-shadow: 0 12px 30px rgba(88, 166, 255, 0.15);
}


