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

:root {
  --bg-color: #292828;
  --text-color: #ffffff;
  --secondary-text-color: #dee2e6;
  --icon-size: 28px;
  --hover-background: rgba(255, 255, 255, 0.025);
}

/*-------------------Global Styles-------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background: rgb(32, 31, 31);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  font-weight: normal;
  height: auto;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-left: 50px;
  padding-right: 40px;
  padding-top: 40px;
}

.blob {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 650px;
  height: 650px;
  border-radius: 100%;
  background-image: linear-gradient(45deg, #29292b 10%, #2b2b2f);
  filter: blur(60px);
  transition: all 450ms ease-out;
  position: fixed;
  pointer-events: none;
  left: 0;
  top: 0;
  transition: transform 50ms linear, filter 150ms ease-out;
  z-index: -1;
}

/*-------------------Layout and Containers-------------------*/
.container {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

header {
  margin-top: 40px;
}

header h1 {
  font-size: 3rem;
  font-weight: 600;
  line-height: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

header h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--secondary-text-color);
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}

.description {
  color: var(--secondary-text-color);
  margin-bottom: 30px;
  max-width: 55%;
}

.social-icons {
  position: relative;
  margin-bottom: 40px;
}

.social-icons i {
  height: 45px;
  width: 45px;
  color: rgb(173, 167, 167);
  font-size: 22px;
  display: inline-block;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-right: 1px;
  transition: all 0.45s ease;
}

.social-icons i:hover {
  color: white;
}

/*-------------------About Section-------------------*/
.about h3 {
  font-size: 1rem;
  margin-bottom: 30px;
  color: var(--text-color);
  letter-spacing: 2px;
}

.about p {
  color: var(--secondary-text-color);
  margin-bottom: 15px;
  line-height: 1.8;
}

strong {
  color: var(--text-color);
}

/*-------------------Experience Section-------------------*/
.experience {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.experience h2 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-color);
  letter-spacing: 2px;
}

.experience-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  transition: transform 0.2s;
  margin-bottom: 30px;
  border-radius: 8px;
}

.experience-item::before {
  content: "";
  position: absolute;
  top: -20px;
  bottom: -20px;
  left: -20px;
  right: -20px;
  background-color: var(--hover-background);
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s, background-color 0.3s;
  pointer-events: none;
}

.experience-item:hover::before {
  opacity: 1;
}

.experience-item:hover {
  transform: scale(1.02);
}

.date-range {
  flex: 0 0 25%;
  color: var(--secondary-text-color);
  font-size: 0.87rem;
  font-weight: 300;
}

.experience-details {
  flex: 1;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  justify-content: flex-start;
  align-items: center;
}

.skill-bubble {
  background-color: rgba(193, 182, 182, 0.2);
  color: var(--text-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.skill-bubble:hover {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

.experience h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-color);
  letter-spacing: 0.4px;
  font-weight: 510;
}

.experience h4 {
  font-size: 0.9rem;
  color: var(--secondary-text-color);
  margin-bottom: 10px;
}

.experience p {
  font-size: 0.87rem;
  color: var(--secondary-text-color);
}
/*-------------------Education--------------------------*/
.education {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.education h2 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-color);
  letter-spacing: 2px;
}

.education h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-color);
  letter-spacing: 0.4px;
  font-weight: 510;
}

.education h4 {
  font-size: 0.9rem;
  color: var(--secondary-text-color);
  margin-bottom: 10px;
}

.education p {
  font-size: 0.87rem;
  color: var(--secondary-text-color);
}
/*-------------------Projects Section-------------------*/
.projects {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.projects h2 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-color);
  letter-spacing: 2px;
}

.project-item {
  display: flex;
  gap: 20px;
  background-color: var(--card-bg);
  border-radius: 8px;
  position: relative;
  transition: transform 0.2s;
}

.project-item::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 12px;
  transition: background-color 0.3s, transform 0.2s;
  background-color: transparent;
  z-index: -1;
}

.project-item:hover::before {
  background-color: var(--hover-background);
  transform: scale(1.02);
}

.project-thumbnail {
  width: 150px;
  height: 110px;
  object-fit: cover;
  border-radius: 5px;
  border-color: white;
}

.project-details {
  flex: 1;
}

.project-details h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-color);
  letter-spacing: 0.4px;
  font-weight: 510;
}

.project-details h3 a {
  font-size: 1rem;
  color: var(--secondary-text-color);
  text-decoration: none;
}

.project-links {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.project-link {
  display: flex;
  align-items: center;
  color: var(--secondary-text-color);
  text-decoration: none;
  font-weight: 300;
  font-size: 0.8rem;
}

.project-link i {
  margin-right: 6px;
}

.project-link:hover {
  color: white;
}

.project-details p {
  font-size: 0.9rem;
  color: var(--secondary-text-color);
  margin-bottom: 10px;
}

.stars, .installs {
  font-size: 0.85rem;
  color: var(--highlight-color);
  margin-bottom: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  background-color: var(--tag-bg);
  color: var(--text-color);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
}

/*-------------------Footer-------------------*/
footer {
  color: var(--light);
  padding: 15px 0;
  text-align: center;
  font-size: 0.9rem;
  width: 100%;
  margin: 40px auto;
}

footer p {
  max-width: 100%;
  margin: 0 auto;
  padding-left: 15%;
  padding-right: 15%;
}

footer a {
  color: rgb(176, 158, 158);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #c5c5c5;
}

footer p {
  margin: 5px 0;
}

/*-------------------Animations-------------------*/
.fade-in-up {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease-in-out;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.container, 
header, 
section, 
.experience-item, 
.project-item {
  opacity: 0;
  animation: fadeInUp 0.8s ease-in-out forwards;
}

.container {
  animation-delay: 0.2s;
}

header {
  animation-delay: 0.4s;
}

.about, .experience, .projects {
  animation-delay: 0.6s;
}

.experience-item, .project-item {
  animation-delay: 0.8s;
}

body {
  overflow-x: hidden;
}

/*---------------------Responsive-------------------*/

@media (max-width: 768px) {
  body {
    padding: 20px;
    align-items: flex-start;
  }

  .blob {
    width: 300px;
    height: 300px;
    filter: blur(40px);
    left: -50px;
    top: -50px;
  }

  .container {
    max-width: 100%;
    gap: 20px;
  }

  header h1 {
    font-size: 2.2rem;
    line-height: 2rem;
    margin-bottom: 15px;
  }

  header h2 {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .description {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .social-icons {
    margin-bottom: 30px;
    text-align: center;
  }

  .social-icons i {
    height: 40px;
    width: 40px;
    font-size: 18px;
  }

  .experience-item {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .date-range {
    flex: 0 0 auto;
    font-size: 0.75rem;
  }

  .project-item {
    flex-direction: column;
    gap: 15px;
  }

  .project-thumbnail {
    width: 100%;
    height: auto;
  }

  .project-details h3 {
    font-size: 0.9rem;
  }

  .project-details p {
    font-size: 0.85rem;
  }

  .project-links {
    flex-direction: column;
    gap: 10px;
  }

  .skill-tags {
    justify-content: flex-start;
  }

  footer {
    padding: 10px 0;
    font-size: 0.8rem;
  }

  footer p {
    padding-left: 10%;
    padding-right: 10%;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }

  header h2 {
    font-size: 0.9rem;
  }

  .blob {
    width: 250px;
    height: 250px;
    filter: blur(30px);
  }

  .experience-item {
    padding: 10px;
  }

  .container, .projects, .about, .experience {
    gap: 15px;
  }
}
