:root {
  --primary-color: #61a6fa;
  --light: #f5f7fa;
  --dark: #4b5563;
  --font-family: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  font-family: var(--font-family);
}

.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12rem 5% 5%;
  height: 100vh;
  background-color: #202934;
}

.hero-container {
  max-width: 768px;
  text-align: center;
}

.hero-image {
  margin-bottom: 32px;
  width: 250px;
  border-radius: 50%;
  box-shadow: 0px 0px 5px 2px var(--light);
}

.hero-container h1 {
  font-size: 7.2rem;
  margin-bottom: 16px;
  color: var(--light);
}

.hero-container span {
  font-size: 7.2rem;
  color: var(--primary-color);
}

.hero-container p {
  max-width: 672px;
  font-size: 2.4rem;
  margin-bottom: 32px;
  color: #96a3b4;
}

.btn {
  display: inline-block;
  margin-right: 10px;
  padding: 10px 25px;
  font-size: 1.8rem;
  font-weight: 500;
  text-decoration: none;
  color: black;
  background-color: var(--primary-color);
  border-radius: 5px;
  transition: all 0.3s;
}

.btn img {
  margin: 0 6px;
  vertical-align: bottom;
}

.btn:hover {
  transform: translateY(-3px);
  color: var(--light);
  background-color: #3d4d61;
}

/* Title in sections */
.section-title {
  margin-bottom: 6.4rem;
}

.section-title h2 {
  font-size: 3.6rem;
  text-align: center;
  color: var(--dark);
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

/* About section */
.about-section {
  padding: 5%;
}

.about-container {
  max-width: 1280px;
  margin: 0 auto;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 16px;
  font-size: 1.8rem;
  line-height: 3rem;
  text-align: center;
  color: var(--dark);
}

/* Skills section */
.skills-section {
  padding: 5%;
  background-color: #f4f4f4;
}

.skills-container {
  max-width: 1280px;
  margin: 0 auto;
}

.skills-content {
  display: flex;
  justify-content: space-around;
  flex-flow: row wrap;
  height: auto;
  gap: 3rem;
  text-align: center;
}

.skill-category {
  width: 45%;
  min-width: 280px;
}

.skill-category h3 {
  display: inline-block;
  margin-bottom: 3.2rem;
  padding: 10px 50px;
  font-size: 2.5rem;
  color: var(--dark);
  background-color: rgba(127, 190, 235, 0.521);
  border-radius: 10px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
  height: 125px;
  padding: 10px;
  font-weight: 500;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
}

.skill-card img {
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 1.4rem;
  color: var(--dark);
}

/* Experience section */
.experience-section {
  padding: 5%;
}

.experience-container {
  max-width: 1280px;
  margin: 0 auto;
}

.experience-content {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--primary-color);
}

.experiences {
  display: flex;
  flex-direction: column;
  gap: 4.8rem;
}

.experience-item {
  position: relative;
  display: flex;
  align-items: center;
}

.experience-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border: 4px solid var(--dark);
  border-radius: 50%;
  z-index: 1;
  transform: translateX(-48%);
}

.experience-card {
  width: 45%;
  margin-left: 0;
  padding: 24px;
  background-color: var(--light);
  border-radius: 10px;
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.5);
}

.experience-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
}

.experience-company {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
}

.experience-period {
  margin-bottom: 16px;
  font-size: 1.4rem;
  color: var(--dark);
}

.experience-description {
  margin-bottom: 16px;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--dark);
}

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

.tech-tag {
  padding: 4px 12px;
  font-size: 1.2rem;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 25px;
}

/* Projects section */
.project-section {
  padding: 5%;
  background-color: #f4f4f4;
}

.project-container {
  max-width: 1280px;
  margin: 0 auto;
}

.projects {
  display: flex;
  justify-content: center;
  flex-flow: row wrap;
  gap: 3rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 350px;
  padding: 15px;
  background-color: var(--light);
  border-radius: 10px;
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.5);
}

.project-title {
  margin-bottom: 16px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
}

.project-image {
  width: 100%;
  height: 200px;
  margin-bottom: 16px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
}

.technologies-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-buttons {
  display: flex;
  justify-content: space-between;
}

.demo-btn,
.github-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45%;
  padding: 8px 15px;
  font-size: 1.4rem;
  text-decoration: none;
  color: black;
  background-color: rgba(127, 190, 235, 0.521);
  box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  transition: all 0.3s;
}

.demo-btn:hover,
.github-btn:hover {
  transform: translateY(-1px);
  color: var(--light);
  background-color: #3d4d61;
}

.demo-btn img,
.github-btn img {
  width: 20px;
  margin: 0 6px;
}

/* Call to action section */
.call-to-action-section {
  padding: 5%;
  background-color: #202934;
}

.call-to-action-container {
  text-align: center;
}

.call-to-action-container h2 {
  margin-bottom: 16px;
  font-size: 5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.call-to-action-container p {
  margin: 0 auto 32px;
  max-width: 672px;
  font-size: 2.4rem;
  color: #96a3b4;
}

/* Footer section*/
footer {
  background-color: #202934;
  color: var(--light);
  padding: 0 5%;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-copyright {
  padding: 3.2rem 0;
  font-size: 1.6rem;
  text-align: center;
  border-top: 1px solid #ffffff33;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-section {
    padding: 5%;
  }

  .hero-image {
    width: 200px;
  }

  .hero-container h1 {
    font-size: 4.8rem;
  }

  .hero-container span {
    font-size: 4.8rem;
  }

  .hero-container p {
    font-size: 1.8rem;
  }

  .btn {
    display: block;
    width: 280px;
    margin: 16px auto;
    font-size: 1.6rem;
  }

  .section-title {
    margin-bottom: 3.2rem;
  }

  .section-title h2 {
    font-size: 3rem;
    line-height: 3.6rem;
  }

  .skills-section {
    padding: 96px 5%;
  }

  .skill-category {
    width: 100%;
    margin-bottom: 3.2rem;
  }

  .about-section {
    padding: 96px 5%;
  }

  .about-content p {
    font-size: 1.6rem;
  }

  .experience-section {
    padding: 96px 5%;
  }

  .timeline-line {
    left: 15px;
  }

  .experience-item:nth-child(even) {
    flex-direction: row;
  }

  .timeline-dot {
    left: 15px;
  }

  .experience-card {
    width: 100%;
    margin-left: 50px;
  }

  .project-section {
    padding: 96px 5%;
  }

  .call-to-action-section {
    padding: 96px 5%;
  }

  .call-to-action-container h2 {
    font-size: 4rem;
  }

  .call-to-action-container p {
    font-size: 1.8rem;
  }
}
