* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #dae6dc, #b0e5e7);
  color: #333;
  line-height: 1.7;
}

header {
  background: linear-gradient(to right, #4e54c8, #8f94fb);
  color: white;
  padding: 2.5em 1em;
  text-align: center;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  text-align: left;
  max-width: 800px;
  margin: auto;
}

.profile-pic {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.text-content h1 {
  font-size: 2.5em;
  margin-bottom: 0.2em;
}

.text-content p {
  font-size: 1.1em;
  color: #e0e0e0;
}

html {
  scroll-behavior: smooth;
}

nav {
  background: #212d41;
  display: flex;
  justify-content: center;
  padding: 1em 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  color: rgb(254, 253, 253);
  text-decoration: none;
  margin: 0 20px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #f4d03f;
}

section {
  padding: 3em 2em;
  max-width: 1000px;
  margin: auto;
}

h2 {
  text-align: left;
  margin-bottom: 1em;
  color: #4e54c8;
}

.project {
  background: white;
  padding: 1.5em;
  margin-bottom: 1.5em;
  border-left: 5px solid #4e54c8;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.project:hover {
  transform: scale(1.04);
}

ul {
  list-style-type: square;
  padding-left: 20px;
}

form {
  display: flex;
  flex-direction: column;
  background: white;
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  max-width: 500px;
  margin-left: 0%;
  margin-right: auto;
}

form input, form textarea {
  margin-bottom: 1em;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  background: #4e54c8;
  color: white;
  padding: 10px;
  border: none;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background: #373bb2;
}

footer {
  background: #222;
  color: rgb(254, 252, 252);
  text-align: center;
  padding: 1em;
  margin-bottom: 0.2em;
}

.button-group {
  margin-top: 15px;
}

.button-group button {
  background-color: #4e54c8;
  color: white;
  border: none;
  padding: 10px 18px;
  margin-right: 10px;
  border-radius: 6px;
  font-size: 0.95em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
}

.button-group button:hover {
  background-color: #373bb2;
  transform: scale(1.05);
}

#certificates {
  padding: 3em 2em;
  max-width: 1000px;
  margin: auto;
}

.certificate-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.certificate-item {
  background: white;
  padding: 1.5em;
  border-radius: 10px;
  border-left: 5px solid #4e54c8;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.certificate-item:hover {
  transform: scale(1.04);
}

.certificate-item h3 {
  margin: 0 0 0.3em;
  color: #4e54c8;
}

.certificate-item p {
  margin-bottom: 0.8em;
  color: #555;
}

.cert-button {
  display: inline-block;
  padding: 5px 16px;
  background-color: #4e54c8;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.4s ease;
}

.cert-button:hover {
  background-color: #373bb2;
  transform: scale(1.04);
}

.social-icons {
  margin-top:10px;
}

.social-icons a {
  margin: 0 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-icons img {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  border: #e0e0e0;
  border-radius: 1cm;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 1em;
}

.skill-card {
  background: white;
  border-radius: 12px;
  padding: 1em;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: scale(1.05);
}

.skill-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 0.5em;
}

.skill-card p {
  margin: 0;
  font-weight: bold;
  color: #333;
}