.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid white;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  object-fit: cover;
}



body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #fff0f5;
  color: #333;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* ===== Header & Nav ===== */

header {
  background: #ff69b4;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid white;
  white-space: nowrap;
  animation: typing 3s steps(20, end), blink-caret 0.7s step-end infinite;
  font-weight: bold;
  font-size: 2.8rem;
}



.form-container{
    display: flex;
    justify-content: center;
    align-items: center;
}


@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: white }
}

nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  background: #ffe4e1;
  padding: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: #ff69b4;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* ===== Section Formatting ===== */
section {
  padding: 2rem;
  margin: 0 auto;
  max-width: 900px;
   text-align: center; /* ✅ Centers text and inline elements */
}

h2 {
  color: #d63384;
  border-bottom: 2px solid #ffa6c9;
  padding-bottom: 0.3rem;
}

/* ===== Grid for Skills ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.grid li {
  background: #ffe4e1;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ===== Interests Tags ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
}

.tags li {
  background: #ffb6c1;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
}


/* ===== Achievements Section ===== */
.badges {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  
}

.badges li {
  background: #ffe4e1;
  padding: 1rem;
  border-left: 5px solid #ff69b4;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ===== Projects ===== */
.project {
  background: #ffe4e1;
  border-left: 6px solid #ff69b4;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ===== Buttons & Forms ===== */
.button {
  display: inline-block;
  background: #ff69b4;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  margin-top: 1rem;
  font-weight: bold;
}

.button:hover {
  background: #ff1493;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1 rem;
  max-width: 600px;
  margin: 0 auto;
  gap: 1.2rem;
}

 
input, textarea {
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  font-size: 0.9rem;
  border: 2px solid #ffa6c9;
  border-radius: 12px;
}


button {
  background: #ff69b4;
   text-align: center;
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
button:hover {
  background: #ff1493;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1rem;
  background: #ffe4e1;
  color: #333;
  margin-top: 2rem;
}