:root {
  font-size: 16px;
  --primary-color: #007acc;
  --primary-dark-color: #004979;
  --accent-color: #ffb400;
  --text-color: #333;
  --bg-color: #fff;
  --bg-light-color: #f7f7f7;
  --transition-duration: 0.3s;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light-color);
  color: var(--text-color);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Navigation bar */
nav {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
}

nav ul li {
  margin: 0 1.25rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: background var(--transition-duration);
}

nav ul li a:hover {
  background-color: var(--accent-color);
}

/* Smooth scroll animation */
html {
  scroll-behavior: smooth;
}

/* Container */
.container {
  width: 90%;
  max-width: 70rem;
  margin: 0 auto;
}

/* Section styles */
section {
  padding: 4rem 0;
}

.bg-white {
  background-color: var(--bg-color);
}

.bg-light {
  background-color: var(--bg-light-color);
}

/* Hero Section */
header {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 7.5rem 0 5rem;
}

header h1 {
  font-size: 3rem;
  margin: 0;
}

header p {
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

/* Skills Section */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.skill-card {
  flex: 1 1 30%;
  text-align: center;
  padding: 2rem;
  border-radius: 0.5rem;
  transition: transform var(--transition-duration);
}

.skill-card:hover {
  transform: translateY(-0.5rem);
}

.skill-card i {
  font-size: 4rem;
}

.skill-card p {
  margin-top: 1rem;
  font-size: 1.2rem;
}

/* Skills Icon Colors */
.fab.fa-js-square {
  color: #f0db4f;
}

.fab.fa-java {
  color: #007396;
}

.fab.fa-angular {
  color: #dd0031;
}

.fab.fa-docker {
  color: #2496ed;
}

.fab.fa-gitlab {
  color: #fc6d26;
}

.fab.fa-vuejs {
  color: #41b883;
}

/* Timeline (Experience & Education) */
.timeline {
  position: relative;
  margin: 2rem 0;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 0.375rem;
  background-color: var(--primary-color);
  top: 0;
  border-radius: 1rem;
  bottom: 0;
  left: 50%;
  margin-left: -0.1875rem;
}

.timeline-item {
  position: relative;
  width: 50%;
}

.card {
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.card-header {
  margin-bottom: 2rem;
}

.card ul {
  padding-left: 1rem;
}

.card ul li {
  margin: 0 0 1rem 1rem;
}

.right .card {
  margin-left: 3rem;
}

.left .card {
  margin-right: 3rem;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::after {
  content: " ";
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--primary-dark-color);
  border: 0.25rem solid white;
  top: 1.5rem;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.left::after {
  right: -1rem;
}

.timeline-item.right::after {
  left: -1rem;
}

.timeline-item .title {
  margin-bottom: 0.75rem;
  color: var(--primary-dark-color);
}

.timeline-item .date {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #999999;
}

.timeline-item .company {
  margin: 0;
  color: #999999;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1.5rem;
}

footer a {
  color: white;
  text-decoration: none;
}

/* Contact Section */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  transition: color var(--transition-duration);
}

.contact-info a:hover {
  color: var(--accent-color);
}

.contact-info a i {
  margin-right: 0.5rem;
}

.contact-info .name {
  margin-top: 0;
  margin-bottom: 2rem;
}

.profile-picture {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background-color: #ddd;
  margin: 1.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    display: none;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1.125rem;
  }

  .timeline::after {
    left: 0;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
  }

  .timeline-item::after {
    left: -1rem;
  }

  .left .card,
  .right .card {
    margin-right: 0;
    margin-left: 2em;
  }

  .card[data-aos="fade-right"] {
    transform: translate3d(100px, 0, 0);
  }
}
