* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 15px 30px;
}

nav .logo {
  color: black;
  font-size: 24px;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: black;
  text-decoration: none;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: plum;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(#dda0dd, #ff99cc);
  color: #fff;
  height: 100vh;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
}

.hero h2 {
  font-size: 28px;
  margin-top: 10px;
}

.hero .btn {
  margin-top: 20px;
  padding: 12px 25px;
  background: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 25px;
  transition: background 0.3s, color 0.3s;
}

.hero .btn:hover {
  background: linear-gradient(#dda0dd, #ff99cc);
  color: #fff;
}

section {
  padding: 60px 20px;
  text-align: center;
}

section h2 {
  margin-bottom: 30px;
  font-size: 32px;
}

.service, .project {
  background: #f5f5f5;
  padding: 20px;
  margin: 20px auto;
  max-width: 400px;
  border-radius: 10px;
}

form input, form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
}

form button {
  padding: 12px 30px;
  background: plum;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: white;
  color: black;
}

footer {
  background: plum;
  color: #fff;
  padding: 20px;
  align-items: center;
}

.card-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.project-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(80, 0, 80, 0.08);
  overflow: hidden;
  width: 350px;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.03);
}

.card-header {
  background: plum;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  font-size: 3rem;
}

.card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.card-body h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #232946;
  text-align: left;
}

.card-body p {
  color: #5a6272;
  margin: 0 0 1.5rem 0;
  text-align: left;
  line-height: 1.6;
  font-size: 1rem;
}

.tags {
  margin: 0 0 1.5rem 0;
  text-align: left;
}

.tags span {
  background: #f3e6fa;
  color: black;
  border-radius: 16px;
  padding: 0.4em 1em;
  margin-right: 0.5em;
  margin-bottom: 0.5em;
  font-size: 0.9em;
  font-weight: 500;
  display: inline-block;
}

.card-links {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
}

.card-links a {
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 20px;
  border: 2px solid #a259c4;
  color: black;
  font-weight: 500;
  font-size: 0.95em;
  transition: all 0.2s;
  background: transparent;
}

.card-links a:hover {
  background: plum;
  color: #fff;
  transform: translateY(-2px);
}

.card-links .live-demo {
  background: none;
}

.card-links .github {
  background: #fff;
}

.about-section {
  background: #f8f9fb;
  padding: 4rem 0 2rem 0;
}

.about-section h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto; 
  display: block;
  position: relative;
}

.about-section h2::after {
  content: "";
  display: block;
  margin: 0.7rem auto 0 auto;
  width: 70px;
  height: 5px;
  border-radius: 3px;
  background: #a259c4;
}

.about-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.about-left {
  flex: 2;
  min-width: 320px;
}

.about-left h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: left;
}

.about-left h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #232946;
}

.about-left p {
  color: #5a6272;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.about-left h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
}

.skills-grid {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.skill-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(80, 0, 80, 0.07);
  padding: 1.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.skill-card:hover {
  box-shadow: 0 8px 32px rgba(80, 0, 80, 0.13);
  transform: translateY(-4px) scale(1.04);
}

.skill-icon {
  display: block;
  font-size: 2.2rem;
  color: plum;
  margin-bottom: 0.5rem;
}

.about-right {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo {
  width: 350px;
  height: 400px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(80, 0, 80, 0.13);
}

@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .about-right {
    width: 100%;
    justify-content: center;
  }
  .about-photo {
    width: 100%;
    max-width: 350px;
    height: auto;
  }
}

.contact-section {
  background: #f8f9fb;
  padding: 4rem 0;
}

.contact-section h2 {
  text-align: left;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}

.contact-section h2::after {
  content: "";
  display: block;
  margin: 0.7rem auto 0 auto;
  width: 70px;
  height: 5px;
  border-radius: 3px;
  background: #a259c4;
}

.contact-content {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-left {
  flex: 1;
  min-width: 320px;
  max-width: 500px;
  text-align: left;
}

.contact-left h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #232946;
  text-align: left;
}

.contact-left p {
  color: #5a6272;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-align: left;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
}

.contact-icon {
  font-size: 1.5rem;
  color: #a259c4;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.contact-item div {
  text-align: left;
}

.contact-item div strong {
  display: block;
  font-weight: 600;
  color: #232946;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.contact-item div p {
  margin: 0;
  color: #5a6272;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 2rem;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #a259c4;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(80, 0, 80, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(80, 0, 80, 0.15);
}

.contact-right {
  flex: 1;
  min-width: 320px;
  max-width: 500px;
}

.contact-form {
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(80, 0, 80, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #a259c4;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background: white;
  color: black;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.contact-form button:hover {
  background: plum;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .contact-content {
    flex-direction: column;
    align-items: center;
  }
  .contact-left,
  .contact-right {
    width: 100%;
    max-width: 500px;
  }
}

#featured-projects h2 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
}

#featured-projects h2::after {
  content: "";
  display: block;
  margin: 0.7rem auto 0 auto;
  width: 70px;
  height: 5px;
  border-radius: 3px;
  background: plum;
}
