/* Reset & base style */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

hr {
  width: 90%;
  margin: 0 auto;
}

body {
  font-family: "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fdfdfd;
  color: #222;
}

/* Header */
header {
  text-align: center;
  height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #1249ec;
  border-bottom: 1px solid #ddd;
}

header h3:first-child {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 4rem;
  color: #fdfdfd;
}

header h3:last-child {
  font-weight: 400;
  color: #fdfdfd;
  font-size: 2.5rem;
}

/* About Section */
.about {
  padding: 2rem 1rem;
  text-align: center;
}

.about h4 {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.about p {
  max-width: 600px;
  margin: 0 auto;
  color: #555;
}

/* Works Section */
.works {
  padding: 2rem 1rem;
}

.works h4 {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #333;
}

ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

/* Each link group (link1, link2, link3) */
.link1, .link2, .link3 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  padding: 1.5rem;
  background: #f1f1f1;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect for modern card feel */
.link1:hover, .link2:hover, .link3:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.link1 h5, .link2 h5, .link3 h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
}

.link1 p, .link2 p, .link3 p {
  color: #333;
  line-height: 1.5;
  max-width: 600px;
}

.link1 a, .link2 a, .link3 a {
  color: #0073e6;
  text-decoration: none;
  font-weight: 600;
}

.link1 a:hover,
.link2 a:hover,
.link3 a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #1249ec;
  border-top: 1px solid #ddd;
  padding: 1.5rem 1rem;
  margin-top: auto;
}

footer ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

footer li {
  color: #fdfdfd;
  font-size: 0.9rem;
}

/* --- Responsive (Phone) --- */
@media (max-width: 600px) {
  header {
    padding: 1.5rem 1rem;
    height: 70vh;
  }

  header h3:first-child {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 3.5rem;
  }

   header h3:last-child {
    font-weight: 400;
    font-size: 1.5rem;
   }

  .about p {
    text-align: start;
    margin-left: 1rem;
  }

  .link1, .link2, .link3 {
    align-items: start;
    text-align: start;
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 1.25rem;
  }

  footer ul {
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
    margin-left: 1rem;
  }
}
