:root {
  --bg-color: #ffffff;
  --accent: #ee668a;
  --text-color: #333;
  --subtext: #666;
  --card-bg: #fff7f9;
  --shadow: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Nunito Sans", sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4%;
  border-bottom: 1px solid #f2f2f2;
}

.logo {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--accent);
}

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

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
  transition: color 0.3s ease;
}

.hero {
  text-align: center;
  padding: 6rem 4%;
}

.hero h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  color: var(--accent);
}

.hero p {
  color: var(--subtext);
  max-width: 600px;
  margin: 0.8rem auto 2rem;
}

.hero .location {
  margin: 0.5rem auto 1.5rem;
  font-size: 0.95rem;
}

.links a {
  margin: 0 0.5rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
}

.links a:hover {
  background: var(--accent);
  color: #fff;
}

section {
  padding: 4rem 8%;
}

h3 {
  font-family: "Poppins", sans-serif;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

h4 {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  font-size: 1.1rem;
}

/* About Section */
.about p {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}

/* Experience Section */
.experience-item {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 1.5rem;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-date {
  color: var(--subtext);
  font-size: 0.9rem;
  font-weight: 500;
}

.company {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.experience-item ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.experience-item li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Projects Section */
.subsection-title {
  font-family: "Poppins", sans-serif;
  color: var(--accent);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.project-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(238, 102, 138, 0.15);
}

.project-card h4 {
  font-family: "Poppins", sans-serif;
  margin-bottom: 0.8rem;
}

.project-card p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.project-card .tags {
  margin-top: 0.8rem;
  color: var(--subtext);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Skills Section */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.skill-grid div {
  background: var(--card-bg);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  line-height: 1.8;
}

.skill-grid strong {
  color: var(--accent);
}

/* Education Section */
.edu-item {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 1.5rem;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-date {
  color: var(--subtext);
  font-size: 0.9rem;
  font-weight: 500;
}

.edu-item p {
  margin-bottom: 0.3rem;
  color: var(--subtext);
}

.specialization {
  color: var(--accent);
  font-weight: 500;
  font-style: italic;
}

/* Certifications Section */
.certifications ul {
  list-style: none;
  margin-left: 0;
}

.certifications li {
  background: var(--card-bg);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.certifications strong {
  color: var(--accent);
}

/* Contact Section */
.contact p {
  margin-bottom: 0.8rem;
}

.contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
  color: var(--subtext);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(238, 102, 138, 0.3);
  z-index: 1000;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(238, 102, 138, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.8rem;
  }

  header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  section {
    padding: 3rem 5%;
  }

  .hero {
    padding: 4rem 5%;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .exp-header,
  .edu-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .links a {
    display: inline-block;
    margin: 0.3rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}
