/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #111;
  color: #f1f1f1;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 120px 20px 40px; /* top padding increased for navbar space */
}

/* Headings */
h1, h2 {
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 25px;
}

h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  color: #eae8e8;
}

.p1 {
  text-indent: 180px;
}

/* Paragraphs */
p, li {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 15px;
}

/* Education */
.education ul {
  list-style: none;
  padding-left: 0;
}

.education li {
  margin-bottom: 10px;
}

.skills h2 {
  text-align: center;
}

/* Skills Icons - Desktop default: one row */
.skills .icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 100px;
  margin-top: 50px;
}

.para {
  margin-top: 50px;
  text-indent: 30px;
}

.skills img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}

.skills img:hover {
  transform: scale(1.2);
}

/* Footer */
footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

/* Work Logos - Desktop default: one row */
.work-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 180px;
  margin-top: 80px;
}

.work-logos img {
  max-height: 60px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.work-logos img:hover {
  transform: scale(1.1);
}

/* ========================= */
/*   RESPONSIVE DESIGN       */
/* ========================= */

/* Tablets (≤992px) */
@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .skills .icons {
    gap: 60px;
  }

  .work-logos {
    gap: 100px;
  }

  .p1 {
    text-indent: 100px;
  }
}

/* Mobiles (≤600px) */
@media (max-width: 600px) {
  .container {
    padding: 120px 20px 40px; /* keep navbar space */
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  p, li {
    font-size: 0.95rem;
  }

  /* Two images per row */
  .skills .icons,
  .work-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-items: center;
  }

  .work-logos {
    margin-top: 40px;
  }

  .p1 {
    text-indent: 40px;
  }
}
