@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: #f8f9fa;
  color: #344563;
  line-height: 1.6;
}

/* button styling */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.btn-contact {
  padding: 0.5rem 1.5rem !important;
}
.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary {
  background-color: #4000c0;
  color: #fff;
}
.btn-primary:hover {
  background-color: #5500ff;
}
.btn-secondary {
  background-color: transparent;
  color: #4000c0;
  border: 1px solid #4000c0;
}
.btn-secondary:hover {
  background-color: #4000c0;
  border: 1px solid #4000c0;
  color: #fff;
}
.btn-submit {
  margin-top: 1rem;
  background: #5500ff;
}
.btn-submit:hover {
  background: #33068c;
}

/* Header */
.header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4000c0;
  text-decoration: none;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-link {
  color: #344563;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #4000c0;
}
.nav-link.active {
  color: #4000c0;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.line {
  width: 25px;
  height: 3px;
  background-color: #4000c0;
  margin: 3px 0;
  transition: all 0.3s ease;
}

/* All sections */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-title {
  font-size: 2rem;
  color: #172b4d;
  margin-bottom: 2rem;
  text-align: left;
}

/* Hero Section */
.hero-section {
  border-bottom: 1px solid #ebe1fd;
  margin-top: 60px;
  padding: 4rem 2rem;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  min-height: 700px;
  margin: 0 auto;
  text-align: center;
}
.hero-title {
  font-size: 2.5rem;
  color: #172b4d;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: #344563;
  margin-bottom: 2rem;
  max-width: 670px;
  margin-left: auto;
  margin-right: auto;
}
.hero-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ebebff;
  border-radius: 50%;
  color: #4000c0;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-icon:hover {
  background-color: #4000c0;
  color: #fff;
}

/* Project Section */
.projects-section {
  padding: 4rem 2rem;
  background-color: #fff;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 1rem 0 4rem 0;
}
.category-title {
  font-size: 16px;
  color: #4000c0;
  display: block;
}
.project-card {
  background-color: #fff;
  height: auto;
  border: 1px solid #dfe1e6;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  box-shadow: 0 8px 16px rgba(146, 96, 255, 0.4);
  border-color: #4000c0;
}
.project-header {
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.3rem;
  color: #172b4d;
  margin-bottom: 0.3rem;
}
.project-org {
  font-size: 0.9rem;
  font-weight: 100;
  color: #7a869a;
}
.project-link {
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline !important;
  margin: 15px 0;
  font-weight: 100;
  color: #4000c0;
}
.project-desc {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #344563;
  margin: 0.5rem 0;
  flex-grow: 1;
  line-height: 1.6;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.tech-tag {
  background-color: #ebebff;
  color: #4000c0;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}
.project-link {
  color: #4000c0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start;
}
.project-link:hover {
  color: #8b5aed;
}

/* About Section */
.about-section {
  padding: 4rem 2rem;
  background-color: #f8f9fa;
}
.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.about-text {
  flex: 1;
}
.about-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #344563;
}
.skills-title {
  font-size: 1.3rem;
  color: #172b4d;
  margin-bottom: 1rem;
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.skill-category {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #dfe1e6;
}
.skill-category h4 {
  color: #4000c0;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.skill-category p {
  font-size: 0.9rem;
  color: #344563;
}

/* Experience Section */
.experience-section {
  flex: 1;
}
.exp-title {
  font-size: 1.3rem;
  color: #172b4d;
  margin-bottom: 1.5rem;
}
.experience-item {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #4000c0;
  margin-bottom: 1.5rem;
}
.exp-role {
  font-size: 1.1rem;
  color: #172b4d;
  margin-bottom: 0.2rem;
}
.exp-company {
  color: #4000c0;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.exp-period {
  color: #7a869a;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.exp-details {
  list-style: none;
  padding: 0;
}
.exp-details li {
  color: #344563;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}
.exp-details li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #4000c0;
}

/* Education Section */
.education-section {
  padding: 4rem 2rem;
  background-color: #fff;
}
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.education-card {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #dfe1e6;
}
.education-card h4 {
  font-size: 1.1rem;
  color: #172b4d;
  margin-bottom: 0.5rem;
}
.edu-org {
  color: #4000c0;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.edu-period {
  color: #7a869a;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.edu-desc {
  color: #344563;
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  padding: 4rem 2rem;
  background-color: #4000c0;
  color: #000000;
}
.contact-title {
  color: white;
  text-align: center;
}
.contact-subtitle {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #ebebff;
  margin-bottom: 2rem;
}
.contact-form {
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #fff;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}
.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ebebff;
}

/* Footer */
.footer {
  background-color: #150040;
  color: #fff;
  padding: 2rem;
  text-align: center;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-contact-info {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
  font-size: 20px;
}
.footer-social a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-social a:hover {
  color: #ebebff;
}
