:root {
  --primary: #6c63ff;
  --secondary: #f2f4fc;
  --accent: #7e869e;
  --white: #fff;
  --gray: #f8f9fa;
  --shadow: 0 2px 24px rgba(44, 60, 94, 0.09);
  --rounded: 18px;
  --max-width: 1100px;
}

body {
  background: var(--gray);
  color: #252525;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Navbar */
.navbar {
  width: 100%;
  background: var(--white);
  padding: 1.1em 0.8em;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: 0 0 var(--rounded) var(--rounded);
}
.navbar > span {
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 2em;
  margin: 0;
  padding: 0;
}
.navbar li {
  display: inline;
}
.navbar a,
.work-btn {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 1.03em;
}
.navbar a:hover,
.work-btn {
  color: var(--primary);
}
.work-btn {
  border: none;
  background: var(--primary);
  color: var(--white);
  border-radius: 999px;
  padding: 0.4em 1.2em;
  font-size: 1em;
  cursor: pointer;
  margin-left: 0.6em;
  font-weight: 600;
  box-shadow: 0 1.5px 6px rgba(108,99,255,0.06);
}

/* Header */
.main-header {
  width: 100%;
  text-align: center;
  margin: 2.5em 0 2em 0;
}
.subtitle {
  display: inline-block;
  padding: 0.18em 1.1em;
  background: var(--secondary);
  border-radius: 99px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.7em;
  font-size: 1.05em;
}
.main-header h1 {
  font-size: 2.3em;
  font-weight: 700;
  margin: 0.2em 0 0.4em 0;
  letter-spacing: -1px;
}
.desc {
  color: var(--accent);
  margin-bottom: 1.4em;
  font-size: 1.08em;
}
.header-btns button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.7em 1.7em;
  border-radius: 99px;
  margin: 0 0.35em;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0px 2px 8px #b7bfff3b;
  transition: background 0.25s;
}
.header-btns button:last-child {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.header-btns button:hover {
  filter: brightness(0.95);
}

/* About Section */
.about {
  display: flex;
  gap: 2.8em;
  align-items: center;
  max-width: var(--max-width);
  margin: 2.5em auto;
  background: var(--white);
  border-radius: var(--rounded);
  box-shadow: var(--shadow);
  padding: 2.4em 2em;
}
.profile-pic {
  width: 145px;
  height: 145px;
  object-fit: cover;
  border-radius: var(--rounded);
  border: 4px solid var(--secondary);
  box-shadow: 0 4px 16px #7e869e0a;
}
.about-text h2 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.26em;
}
.about-text p {
  max-width: 420px;
  color: #5e6170;
}
.about-text button {
  display: inline-block;
  margin-top: 0.9em;
  padding: 0.48em 1.5em;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
}

/* Skills Section */
.skills {
  background: var(--secondary);
  padding: 2.4em 0 2.2em 0;
  margin: 2.7em 0;
}
.skills h2 {
  text-align: center;
  margin-bottom: 1.7em;
  letter-spacing: 0.5px;
  color: var(--primary);
}
.skill-set {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5em;
}
.skill-set div {
  background: var(--white);
  padding: 1.15em 1.55em 1.1em 1.55em;
  border-radius: 13px;
  box-shadow: 0 2px 10px #7775ff08;
  min-width: 180px;
  max-width: 230px;
}
.skill-set h3 {
  margin: 0 0 0.8em 0;
  font-size: 1.04em;
  font-weight: 600;
  color: #393f64;
  letter-spacing: 0.2px;
}
.skill-set span {
  display: inline-block;
  margin: 0.2em 0.3em 0.2em 0;
  padding: 0.14em 0.8em;
  background: #eef1fa;
  color: #4c4e57;
  font-size: 0.98em;
  border-radius: 6px;
  font-weight: 500;
}

/* Projects Section */
.projects {
  max-width: var(--max-width);
  margin: 2.7em auto 2em auto;
}
.projects h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 1.7em;
}
.project-card {
  display: inline-block;
  background: var(--white);
  border-radius: 13px;
  margin: 1.3em 1em;
  min-width: 258px;
  max-width: 345px;
  box-shadow: 0 2px 14px #493cff12;
  padding: 1.1em 1.3em;
  text-align: left;
  vertical-align: top;
  transition: transform 0.13s, box-shadow 0.13s;
}
.project-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 38px #8785ff25;
}
.project-card h3 {
  color: var(--primary);
  margin-top: 0.2em;
}
.project-card p {
  color: var(--accent);
  font-size: 1.01em;
  min-height: 54px;
}
.project-card button {
  margin-right: 0.7em;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 0.45em 1.05em;
  font-weight: 500;
  font-size: 1em;
  cursor: pointer;
  margin-top: 0.3em;
}
.project-card button:last-child {
  background: #ede6ff;
  color: #5b3fff;
  border: 1.2px solid var(--primary);
}

/* Contact Section */
.contact {
  background: var(--secondary);
  border-radius: var(--rounded);
  max-width: var(--max-width);
  margin: 3.5em auto 2.1em auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.4em;
  padding: 2.2em 2.1em 1.8em 2.1em;
  box-shadow: var(--shadow);
}
.contact-info {
  flex: 1;
  font-size: 1.03em;
  line-height: 2;
}
form {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
}
form input, form textarea {
  padding: 0.7em;
  border-radius: 8px;
  border: 1.2px solid #c5c9ee;
  font-size: 1.02em;
  background: var(--white);
  color: #252525;
}
form textarea {
  resize: vertical;
  min-height: 90px;
  max-height: 210px;
}
form button {
  width: fit-content;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.55em 1.7em;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 500;
  margin-top: 0.2em;
  cursor: pointer;
  margin-bottom: 0.9em;
}
form button:last-child {
  background: #ede6ff;
  color: #5b3fff;
  border: 1.2px solid var(--primary);
  margin-left: 0.4em;
}

footer {
  text-align: center;
  color: #adb5bd;
  padding: 1.7em 0 1em 0;
  background: transparent;
  font-size: 0.99em;
  letter-spacing: 0.09px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .about, .contact {
    flex-direction: column;
    align-items: flex-start;
  }
  .about {
    gap: 1.2em;
    text-align: center;
  }
  .contact-info {
    margin-bottom: 1.5em;
  }
  .main-header {
    padding: 1.2em 0.3em;
  }
}

@media (max-width: 600px) {
  .navbar, .about, .projects, .contact {
    padding-left: 1em;
    padding-right: 1em;
    border-radius: 0;
  }
  .project-card {
    min-width: 96%;
    max-width: 98vw;
    margin-left: 0;
    margin-right: 0;
  }
  .main-header h1 {
    font-size: 1.4em;
  }
  .about {
    padding: 1.2em 0.5em;
  }
}
