/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
  color: #333;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffffd9;
  backdrop-filter: blur(6px);
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #6b21a8;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ec4899;
}

/* HERO */
.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #faf5ff, #fff0f5);
}

.content {
  max-width: 700px;
  padding: 1rem;
  animation: fadeIn 1s ease-out;
}

.profile-pic {
  width: 220px; /* slightly larger so less cropping */
  height: 220px;
  border-radius: 50%; /* makes the image circular */
  object-fit: scale-down; /* shows full image without stretching */
  object-position: center top; /* keeps your face toward the center-top */
  background-color: #fff; /* fills any edges softly */
  border: 5px solid #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto 1.5rem auto;
}

h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #6b21a8;
  margin-bottom: 0.8rem;
}

h1 span {
  color: #ec4899;
}

.tagline {
  font-size: 1.05rem;
  color: #5b21b6;
  line-height: 1.7;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

/* BUTTONS */
.buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn,
.btn-outline {
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: white;
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

/* PROJECTS SECTION */
.projects-section {
  padding: 4rem 1rem;
  background: white;
  text-align: center; /* Centers headings, text, and buttons */
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the content block itself */
}

.projects-section h2 {
  color: #9333ea;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  justify-items: center; /* Centers the grid cards */
  max-width: 1000px;
  width: 100%;
}

.project-card {
  background: #fdf4ff;
  border-radius: 16px;
  padding: 1.5rem;
  width: 90%;
  max-width: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.15);
}

.project-card h3 {
  color: #a855f7;
  margin-bottom: 0.8rem;
}

.project-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-btn {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s;
}

.project-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* RESUME SECTION */
.resume-section {
  text-align: center; /* Centers heading, text, and button */
  padding: 4rem 1rem;
  background: #faf5ff;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the whole resume content */
}

.resume-section h2 {
  color: #9333ea;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.resume-section p {
  color: #555;
  margin-bottom: 1.5rem;
  text-align: center;
}

.resume-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 2rem;
}

.resume-frame {
  width: 80%;
  height: 600px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.btn-download {
  display: inline-block;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-download:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* FOOTER */
footer {
  display: flex;
  justify-content: center; /* centers horizontally */
  align-items: center; /* centers vertically */
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fdf4ff;
  color: #7e22ce;
  font-size: 0.95rem;
  font-weight: 500;
  border-top: 1px solid #f3e8ff; /* soft separator line */
  margin-top: 3rem;
}
