/* Reset & Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #f7f9fc;
  color: #1e293b;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #F7F0FA;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 15px 40px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.logo-name {
  font-size: 24px;
  font-weight: 800;
  color: #874CCC;
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  font-weight: 500;
  color: #475569;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #874CCC;
}


/* Responsive */
/* @media (max-width: 768px) {
  .nav-links {
    display: none; 
  }
} */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    gap: 15px;
  }
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  background: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.name {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1e293b;
}

.role {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 500;
  color: #334155;
}

.tagline {
  font-size: 18px;
  margin-bottom: 30px;
  color: #475569;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  text-decoration: none;
  background: #874CCC;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s ease;
  border: none;
}

.btn:hover {
  background: #6d3ab2;
}

.btn.secondary {
  background: transparent;
  color: #874CCC;
  border: 2px solid #874CCC;
}

.btn.secondary:hover {
  background: #DB8DD0;
  color: #fff;
}

/* About Section */
.about {
  padding: 60px 20px;
  background: #f7f9fc;
}

.about h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 30px;
  color: #874CCC;
}

.about p {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 17px;
  line-height: 1.6;
  color: #475569;
  text-align: center;
}

/* Skills Section */
.skills {
  padding: 60px 20px;
  background: #ffffff;
}

.skills h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #874CCC;
}

.skills-row {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto 30px;
}

.center-row {
  justify-content: center;
}

.skill-box {
  width: 200px;
}

.skill-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #1e293b;
  font-weight: bold;
  border-bottom: 2px solid #DB8DD0;
  padding-bottom: 5px;
}

.skill-box ul {
  list-style: none;
  padding-left: 0;
}

.skill-box ul li {
  font-size: 15px;
  color: #475569;
  margin-bottom: 6px;
  line-height: 1.5;
}

/* Responsive Skills */
@media (max-width: 768px) {
  .skills-row {
    flex-direction: column;
    align-items: center;
  }
}

/* Projects Section */
.projects {
  padding: 60px 20px;
  background-color: #f7f9fc;
}

.projects h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #874CCC;
}

/* 🔁 FLEX-BASED Layout */
.project-grid,
.project-grid-row-two {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 30px;
}

/* ✅ Card style */
.project-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 300px;
  flex: 0 1 calc(33.33% - 30px);
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  color: #1e293b;
  font-size: 22px;
  margin-bottom: 10px;
}

.project-card p {
  color: #475569;
  font-size: 15px;
  margin-bottom: 15px;
}

.project-card .btn {
  background: #874CCC;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  display: inline-block;
}

.project-card .btn:hover {
  background: #6d3ab2;
}

/* ✅ Responsive: Flex Wrap with 2 per row on tablets */
@media (max-width: 1024px) {
  .project-card {
    flex: 0 1 calc(50% - 30px);
  }
}

/* ✅ Mobile: Full width cards */
@media (max-width: 600px) {
  .project-card {
    flex: 0 1 100%;
  }
}



/* Experience Section */
.experience {
  padding: 60px 20px;
  background: #ffffff;
}

.experience h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #874CCC;
}

.exp-card {
  background: #f7f9fc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.03);
}

.exp-card h3 {
  font-size: 20px;
  color: #1e293b;
  margin-bottom: 10px;
}

.exp-time {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 12px;
  font-style: italic;
}

.exp-card p {
  font-size: 16px;
  color: #475569;
}

/* Achievements */
.achievements {
  max-width: 800px;
  margin: 0 auto;
}

.achievements h3 {
  font-size: 22px;
  color: #1e293b;
  margin-bottom: 20px;
  border-bottom: 2px solid #DB8DD0;
  padding-bottom: 5px;
}

.achievements ul {
  list-style: none;
  padding-left: 0;
}

.achieve-list {
  list-style: none;
  padding-left: 0;
}

.achieve-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #334155;
  line-height: 1.6;
}

.achieve-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background-color: #DB8DD0;
  border-radius: 50%;
}

.achievements a {
  color: #874CCC;
  text-decoration: none;
}

.achievements a:hover {
  text-decoration: underline;
}

/* Contact Section */
.contact {
  padding: 60px 20px;
  background: #f7f9fc;
  text-align: center;
}

.contact h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #874CCC;
}

.contact p {
  font-size: 16px;
  color: #475569;
  margin-bottom: 30px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact .btn {
  background: #874CCC;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
}

.contact .btn:hover {
  background: #6d3ab2;
}

.contact .btn.secondary {
  background: transparent;
  color: #874CCC;
  border: 2px solid #874CCC;
}

.contact .btn.secondary:hover {
  background: #DB8DD0;
  color: #fff;
}

/* Footer */
.footer {
  background: #ffffff;
  text-align: center;
  padding: 20px;
  color: #475569;
  font-size: 14px;
  border-top: 1px solid #e2e8f0;
}