* {
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-padding-top: 80px; /* Match your header height */
}

/*Navigation Section*/
header {
  background: #defcf9;
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  padding: 10px;
  color: #cca8e9;
}
.download-CV {
  background: #cca8e9;
  padding: 15px 20px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #fff;
  border-style: none;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}
.download-CV:hover {
  background-color: white;
  cursor: pointer;
  color: #cca8e9;
  text-decoration: none;
}
ul {
  display: flex;
  flex-direction: row;
  font-family: "Poppins", sans-serif;
  gap: 1rem;
  list-style: none;
  padding: 0;
}
a {
  font-family: "Poppins", sans-serif;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: 0.5s all ease-in-out;
}
a:hover,
a.active {
  color: #cca8e9;
  text-decoration: underline;
  cursor: pointer;
}
main {
  padding-top: calc(60px - 40px); /* Header height + extra spacing */
}

/*About Me Summary Section*/
.abt-summary {
  display: flex;
  font-family: "Poppins", sans-serif;
  color: #333;
  line-height: 1.6;
  align-items: center;
  justify-content: space-between;
  margin: 20px auto;
  border: dotted 2px #c3bef0;
  padding: 20px 50px;
  gap: 30px;
  max-width: 800px;
  background: #defcf9;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.text {
  flex: 1;
  font-family: "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  min-height: 2.5rem;
}

h2 {
  font-family: "Poppins", sans-serif;
  align-items: left;
  padding-top: 20px;
  color: #333;
}
.name {
  font-family: "Poppins", sans-serif;
  color: #cca8e9;
}
h3 {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
  align-items: left;
  color: #4a4a4a;
}
.pic-and-buttns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  border: 2px solid #c3bef0;
}

.buttons {
  display: flex;
  gap: 10px;
  background-color: #defcf9;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.Certifications {
  background-color: #cca8e9;
  color: #fff;
  padding: 16px 16px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  font-weight: 800;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}
.Certifications:hover {
  background-color: white;
  cursor: pointer;
  color: #cca8e9;
  text-decoration: none;
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 4px 12px rgba(204, 168, 233, 0.3);
}
.LinkedIn {
  background-color: #cca8e9;
  color: #fff;
  padding: 16px 16px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  font-weight: 800;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}
.LinkedIn:hover {
  background-color: white;
  cursor: pointer;
  color: #cca8e9;
  text-decoration: none;
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 4px 12px rgba(204, 168, 233, 0.3);
}
.GitHub {
  background-color: #cca8e9;
  color: #fff;
  padding: 16px 16px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  font-weight: 800;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}
.GitHub:hover {
  background-color: white;
  cursor: pointer;
  color: #cca8e9;
  text-decoration: none;
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 4px 12px rgba(204, 168, 233, 0.3);
}

/*About Me Section*/
.abt-me-sect {
  background-color: #defcf9;
  border: 2px dotted #c3bef0;
  padding: 25px 40px;
  border-radius: 12px;
  max-width: 800px;
  margin: 30px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: "Poppins", sans-serif;
  color: #333;
  line-height: 1.6;
  position: relative;
}

.abt-me-sect h4 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: #333;
}

.abt-me-sect p {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.abt-me-sect .bullet {
  position: absolute;
  left: 0;
  color: #cca8e9;
  font-weight: bold;
  font-size: 1.2rem;
}

.accent-skill {
  color: #cca8e9;
}

.type-effect {
  border-right: 2px solid #cca8e9;
  color: #cca8e9;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: blinkCursor 0.8s steps(1) infinite;
  vertical-align: middle;
  line-height: 1;
  min-height: 1em;
}

@keyframes blinkCursor {
  0%,
  50%,
  100% {
    border-color: #cca8e9;
  }
  25%,
  75% {
    border-color: transparent;
  }
}

/*Skills Section*/
.skills-sect {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px 50px;
  background: #defcf9;
  border: dotted 2px #c3bef0;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.skills-sect-description {
  margin-bottom: 30px;
  font-size: 15px;
}
.skill {
  margin-bottom: 20px;
}
.skill-name {
  font-family: "Poppins", sans-serif;
  color: #4a4a4a;
  line-height: 1.6;
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.skill-bar {
  width: 100%;
  height: 15px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}
.skill-level {
  height: 100%;
  border-radius: 8px;
  width: 0;
  animation: fillBar 1.5s ease-in-out forwards;
  animation-delay: 0.5s;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

@keyframes fillBar {
  from {
    width: 0;
    opacity: 0.7;
  }
  to {
    width: var(--target-width);
    opacity: 1;
  }
}
.skill:hover .skill-level {
  transform: translateY(-1px) scaleY(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1) saturate(1.2);
}
.skill-level::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

.skill:hover .skill-level::after {
  left: 100%;
}

.skill-level.beginner {
  --target-width: 30%;
  background: linear-gradient(90deg, #dda0dd, #e6b3e6);
}
.skill-level.intermediate {
  --target-width: 60%;
  background: linear-gradient(90deg, #9370db, #a58ed2);
}
.skill {
  position: relative;
  cursor: pointer;
}

.skill::before {
  content: attr(data-skill-level);
  position: absolute;
  right: 0;
  top: -25px;
  background: #333;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10;
}

.skill:hover::before {
  opacity: 1;
  transform: translateY(0);
}
h4 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #333;
  font-family: "Poppins", sans-serif;
}
.skills-sect p {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-family: "Poppins", sans-serif;
  color: #333;
  line-height: 1.6;
}

/*Education Section*/
.education-sect {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px 50px;
  background: #defcf9;
  border: dotted 2px #c3bef0;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.education-sect h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #333;
  font-family: "Poppins", sans-serif;
}
.roadmap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.roadmap-step {
  background: white;
  border-left: 4px solid #cca8e9;
  padding: 1rem 2rem;
  margin: 1rem 0;
  width: 80%;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.roadmap-step h4 {
  margin: 0 0 0.5rem 0;
  color: #4a4a4a;
  font-size: 1.5rem;
  font-family: "Poppins", sans-serif;
}
.roadmap .date {
  font-weight: 700;
  color: #b388eb;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
}
.roadmap-step p {
  margin: 0;
  color: #3a9d9d;
  font-size: 1.2rem;
  font-family: "Poppins", sans-serif;
}
.arrow {
  font-size: 2rem;
  margin: 0.5rem 0;
  color: #cca8e9;
  text-align: center;
}

/* Certifications Section*/
.certifications-sect {
  background-color: #defcf9;
  border: 2px dotted #c3bef0;
  padding: 25px 40px;
  border-radius: 12px;
  max-width: 800px;
  margin: 30px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: "Poppins", sans-serif;
  color: #333;
  line-height: 1.6;
  position: relative;
}
.certifications-sect h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #333;
  font-family: "Poppins", sans-serif;
}
.certifications-sect h5 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #b388eb;
}

.timeline {
  position: relative;
  margin: 0 auto;
  padding: 1rem 0;
  width: 90%;
  max-width: 700px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: #cca8e9;
}

.timeline-item {
  position: relative;
  margin: 2rem 0;
  width: 50%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 16px;
  height: 16px;
  background-color: #cca8e9;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-content {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: block;
  width: 85%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content h6 {
  color: #666;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.timeline-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}
.timeline-item:hover .timeline-content {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.timeline-item:hover .timeline-dot {
  transform: translate(-50%, -50%) scale(1.2);
  background-color: #b388eb;
}
/* Responsive design for certifications */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    text-align: left !important;
    left: 0 !important;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    text-align: left;
  }

  .timeline-dot {
    left: 30px;
  }

  .timeline-content {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .certifications-sect {
    padding: 20px;
  }

  .timeline {
    width: 100%;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-content {
    padding: 0.8rem;
  }

  .timeline-content h5 {
    font-size: 1.2rem;
  }
}
/*Projects Section*/
.projects-sect {
  background-color: #defcf9;
  border: 2px dotted #c3bef0;
  padding: 25px 40px;
  border-radius: 12px;
  max-width: 800px;
  margin: 30px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: "Poppins", sans-serif;
  color: #333;
  line-height: 1.6;
  position: relative;
}
.projects-sect h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #333;
  font-family: "Poppins", sans-serif;
}
.projects-intro {
  text-align: center;
  margin-bottom: 30px;
  font-size: 15px;
}

.project-card {
  background-color: #ffffff;
  border: 2px dotted #c3bef0;
  border-radius: 16px;
  width: 100%;
  flex-shrink: 0;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: black;
  cursor: pointer;
}
.project-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.project-card p {
  text-align: center;
  margin-bottom: 10px;
  flex-grow: 1;
}
.view-btn {
  display: flex;
  justify-content: center;
  background-color: #cca8e9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: auto;
  width: fit-content;
  align-self: center;
}
.view-btn:hover {
  color: #cca8e9;
  border: dotted;
  background-color: white;
  cursor: pointer;
}
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  width: 100%;
}
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.carousel-btn {
  background-color: #cca8e9;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.carousel-btn:hover {
  color: #cca8e9;
  background-color: white;
  cursor: pointer;
  transform: translateY(-2px);
}
.carousel-btn:active {
  transform: translateY(0);
}
@media (max-width: 768px) {
  .projects-sect {
    padding: 20px;
    margin: 20px auto;
  }

  .project-card {
    min-width: 300px;
    padding: 20px;
  }

  .carousel-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
/*Contact Me Section*/
.contact-me-sect {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px 50px;
  background: #defcf9;
  border: dotted 2px #c3bef0;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  line-height: 60px;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #cca8e9;
  color: #fff;
  padding: 15px 25px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin: 0 5px;
}
.contact-btn:hover {
  color: #cca8e9;
  background-color: white;
  cursor: pointer;
}

/*Footer Section*/
footer {
  background: #defcf9;
  padding: 15px 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
}
.no-select {
  cursor: not-allowed;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* RESPONSIVE DESIGN */
/* Tablets and smaller desktops */
@media (max-width: 1024px) {
  .abt-summary,
  .abt-me-sect,
  .skills-sect,
  .education-sect,
  .certifications-sect,
  .projects-sect,
  .contact-me-sect {
    max-width: 100%;
    margin-left: 20px;
    margin-right: 20px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  /* Navigation */
  nav {
    flex-direction: column;
    gap: 15px;
  }

  .logo {
    font-size: 24px;
  }

  ul {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Main spacing fix for tablets */
  main {
    padding-top: calc(80px + 30px);
  }

  /* About Me Summary */
  .abt-summary {
    flex-direction: column;
    text-align: center;
    padding: 20px 30px;
    gap: 20px;
    margin-top: 20px;
  }

  .text {
    align-items: center;
  }

  h2,
  h3 {
    text-align: center;
  }

  /* About Me Section */
  .abt-me-sect {
    padding: 20px 30px;
  }

  .abt-me-sect p {
    padding-left: 20px;
  }

  /* Skills Section */
  .skills-sect {
    padding: 20px 30px;
  }

  .skill::before {
    font-size: 10px;
    top: -20px;
  }

  /* Education Section */
  .education-sect {
    padding: 20px 30px;
  }

  .roadmap-step {
    width: 90%;
    padding: 1rem 1.5rem;
  }

  /* Certifications Section */
  .certifications-sect {
    padding: 20px 30px;
  }

  .timeline-content {
    width: 90%;
  }

  /* Projects Section */
  .projects-sect {
    padding: 20px 30px;
  }

  .project-card {
    min-width: 280px;
  }

  /* Contact Me Section */
  .contact-me-sect {
    padding: 20px 30px;
    line-height: 1.6;
  }

  .contact-btn {
    margin: 5px;
    padding: 12px 20px;
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 20px;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  /* Navigation */
  .logo {
    font-size: 20px;
    padding: 5px;
  }

  ul {
    gap: 0.5rem;
  }

  .download-CV {
    padding: 12px 16px;
    font-size: 14px;
  }

  /* Main spacing fix for mobile */
  main {
    padding-top: calc(70px + 25px);
  }

  /* About Me Summary */
  .abt-summary {
    padding: 15px 20px;
    margin: 15px auto;
    gap: 15px;
    margin-top: 50px;
  }

  img {
    width: 150px;
  }

  h3 {
    font-size: 1.5rem;
  }

  .Certifications,
  .LinkedIn,
  .GitHub {
    padding: 12px 14px;
    font-size: 14px;
  }

  /* About Me Section */
  .abt-me-sect {
    padding: 15px 20px;
    margin: 20px auto;
  }

  .abt-me-sect h4 {
    font-size: 1.4rem;
  }

  .abt-me-sect p {
    padding-left: 15px;
    font-size: 14px;
  }

  /* Skills Section */
  .skills-sect {
    padding: 15px 20px;
    margin: 20px auto;
  }

  h4 {
    font-size: 1.5rem;
  }

  .skill-bar {
    height: 12px;
  }

  /* Education Section */
  .education-sect {
    padding: 15px 20px;
    margin: 20px auto;
  }

  .education-sect h3 {
    font-size: 1.5rem;
  }

  .roadmap-step {
    width: 95%;
    padding: 0.8rem 1rem;
  }

  .roadmap-step h4 {
    font-size: 1.2rem;
  }

  .roadmap-step p {
    font-size: 1rem;
  }

  /* Certifications Section */
  .certifications-sect {
    padding: 15px 20px;
    margin: 20px auto;
  }

  .certifications-sect h3 {
    font-size: 1.5rem;
  }

  .timeline-item {
    padding-left: 40px;
  }

  .timeline-content {
    padding: 0.8rem;
  }

  .timeline-content h5 {
    font-size: 1.1rem;
  }

  /* Projects Section */
  .projects-sect {
    padding: 15px 20px;
    margin: 20px auto;
  }

  .projects-sect h3 {
    font-size: 1.5rem;
  }

  .project-card {
    min-width: 250px;
    padding: 15px;
  }

  .project-icon {
    font-size: 2rem;
  }

  .carousel-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  /* Contact Me Section */
  .contact-me-sect {
    padding: 15px 20px;
    margin: 20px auto;
  }

  .contact-btn {
    padding: 10px 16px;
    font-size: 14px;
    margin: 3px;
  }

  /* General spacing adjustments */
  html {
    scroll-padding-top: 70px;
  }
}

/* Very small mobile devices */
@media (max-width: 320px) {
  .abt-summary,
  .abt-me-sect,
  .skills-sect,
  .education-sect,
  .certifications-sect,
  .projects-sect,
  .contact-me-sect {
    max-width: 95%;
    margin-left: 10px;
    margin-right: 10px;
  }

  .buttons {
    flex-direction: column;
    gap: 8px;
  }

  .contact-btn {
    display: block;
    margin: 5px auto;
    width: 90%;
  }
}

/* Landscape orientation for mobile */
@media (min-height: 500px) and (orientation: landscape) {
  .abt-summary {
    flex-direction: row;
    gap: 20px;
  }

  img {
    width: 120px;
  }

  main {
    padding-top: calc(30px + 10px);
  }
}

/* High-resolution displays */
@media (min-resolution: 192dpi) {
  .skill-bar {
    height: 16px;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  .download-CV,
  .buttons,
  .carousel-nav,
  .contact-btn {
    display: none;
  }

  main {
    padding-top: 20px;
  }

  .abt-summary,
  .abt-me-sect,
  .skills-sect,
  .education-sect,
  .certifications-sect,
  .projects-sect {
    border: 1px solid #000;
    box-shadow: none;
    background: white;
  }
}

/* Ensure the first section after header has proper spacing */
.abt-summary:first-of-type {
  margin-top: 80px;
}

/* Additional backup fix */
main > *:first-child {
  margin-top: 80px;
}
