@import url('https://fonts.googleapis.com/css?family=Urbanist');

:root {
  --base-font: 16px; /* Desktop base */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Urbanist";
}

body {
  background: #f8f9fa;
  color: #333;
  font-size: var(--base-font);
}

a {
  text-decoration: none;
  color: inherit;
}


header {
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 100;
}

.logo {
  font-size: calc(var(--base-font) * 1.5625);
  font-weight: bold;
}


nav a {
  margin-left: calc(var(--base-font) * 1.5625); /* 25px */
  font-size: calc(var(--base-font) * 1.25);     /* 20px */
  opacity: .7;
  position: relative;
  padding-bottom: 4px;
  transition: opacity .2s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #1c0266;
  transition: width .25s;
}

nav a:hover,
nav a.active {
  opacity: 1;
  font-weight: bold;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}


main {
  padding-top: 120px;
}

section {
  display: block;
  width: 100%;
  padding: 60px 50px;
}


h2 {
  font-size: calc(var(--base-font) * 3.125);    /* 50px */
  margin-bottom: calc(var(--base-font) * 4.375); /* 70px */
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 60px 50px;
}

.home-img img {
  width: 250px;
  height: 400px;
  object-fit: cover;
  border-radius: 100px;
  border: 4px solid #ddd;
}

.home-content h1 {
  font-size: calc(var(--base-font) * 3.75);    
  margin-bottom: calc(var(--base-font) * 0.625);
  text-align: left;
}

.home-content p {
  font-size: calc(var(--base-font) * 1.875);   /* 30px */
  margin-bottom: calc(var(--base-font) * 1.875); /* 30px */
  max-width: 50rem; 
  text-align: left;
}


.Projects {
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-grid {
  display: flex;
  justify-content: center;
  color: white;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.project-card {
  background: #1c0266;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: .2s;
  font-size: calc(var(--base-font) * 1.25);    /* 20px */
  width: calc(var(--base-font) * 18.75);       /* 300px */
  height: calc(var(--base-font) * 25);         /* 400px */
  border-radius: calc(var(--base-font) * 0.625);
}

.project-card:hover {
  transform: translateY(-5px);
}

.Skills, .Experience, .Contact {
  font-size: calc(var(--base-font) * 1.875);   /* 30px */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--base-font) * 3.75) calc(var(--base-font) * 3.125);
}

ul {
  list-style:none; 
  text-align: justify;
  padding-left: 300px;
  margin: 0;
}
ul li {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px; 
  width: 80%;
}

ul li::before {
  left:0; 
  content: "➤";
  color: #1c0266; 
  position:absolute;  
}

.IT-skills {
  margin-top: 20px;
  color: white;
  width: 80%;
}

.IT-skills h3 {
  font-size: calc(var(--base-font) * 2.5);     /* 40px */
  margin-bottom: calc(var(--base-font) * 2.5); /* 40px */
  text-align: center;
  color: #333;
}

.tool-windows {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(var(--base-font) * 0.5);
}


.tool-card {
  background-color: #1c0266;
  white-space: nowrap;       
  overflow: hidden;          
  text-overflow: ellipsis;   
  font-size: calc(var(--base-font) * 1.5);
  padding: calc(var(--base-font) * 0.5) calc(var(--base-font) * 1);
  border-radius: calc(var(--base-font) * 0.5);
  box-shadow: 0 calc(var(--base-font) * 0.25) calc(var(--base-font) * 0.5) rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: calc(var(--base-font) * 6.25);
  max-width: 190px;   
  flex: 1 1 auto;
  overflow: hidden;           /* hide overflow */
  text-overflow: ellipsis;

}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 120px auto;
  max-width: 1100px;
  width: 100%;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 5px;
  background:#333;
  z-index: 1;
  transform: translateY(-50%); 
}

.item {
  position: relative;
  text-align: center;
  width: 350px; 
}

.dot {
  width: 25px;
  height: 25px;
  background: #1c0266;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.date {
  font-size: calc(var(--base-font) * 1.5625);  /* 25px */
  font-weight: bold;
  margin-bottom: calc(var(--base-font) * 0.625); /* 10px */
}

.desc {
  font-size: calc(var(--base-font) * 1.25);    /* 20px */
  margin-top: calc(var(--base-font) * 0.625);  /* 10px */
  width: calc(var(--base-font) * 11.25);       /* 180px */
  word-wrap: break-word;
}

/*TOP ITEMS*/
.item.top .date {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
}

.item.top .desc {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

/* BOTTOM ITEMS */
.item.bottom .date {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
}

.item.bottom .desc {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.label {
  width: 100%;
  font-size: 14px;
  line-height: 1.3;
  padding: 5px 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.label.top {
  bottom: 30px;
}

.label.bottom {
  top: 30px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.contact-icon {
  font-size: calc(var(--base-font) * 1.25); 
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color:white;
  padding: 10px 20px;
  border-radius: 8px;
  background: #1c0266;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: .2s;
}

.contact-icon:hover {
  transform: translateY(-3px);
  color: white;
}


/* TABLET */
@media (max-width: 900px) {

  :root { --base-font: 14px; }

  header {
    padding: 15px 25px;
    flex-wrap: wrap;
  }

  .home {
    gap: 25px;
    padding: 40px 25px;
  }

  .home-img img {
    width: 220px;
    height: 220px;
  }

  ul {
    padding-left: 50px; 
    width: 100%;
  }

  ul li {
    padding-left: 40px; 
    margin-bottom: 20px;
  }

  .item {
    width: 200px; 
    margin: 20px;  
  }

  .item.top .date,
  .item.bottom .date,
  .item.top .desc,
  .item.bottom .desc {
    font-size: 18px; 
  }

  .desc {
    width: 150px; 
  }
}


/* MOBILE */
@media (max-width: 600px) {

  :root { --base-font: 12px; }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  nav a {
    margin-left: 0;
    margin-right: 15px;
  }

  .home {
    flex-direction: column;
    text-align: justify;
    padding: 30px 20px;
  }

  .home-img img {
    width: 160px;
    height: 160px;
  }

  .project-card {
    width: 90%;
    height: 140px;
  }

.item .date {
    font-size: 12px; 
  }

  .item .desc {
    font-size: 10px; 
    width: 100px; 
  }


  .dot {
    width: 15px;
    height: 15px;
  }

  .item {
    width: auto;
    margin: 20px; 
  }

ul {
    padding-left: 20px; 
    width: 100%;
  }

  ul li {
    padding-left: 35px;
    margin-bottom: 15px;
  }

<<<<<<< HEAD
}
=======
  ul li::before {
    font-size: 14px;
  }
}
>>>>>>> efa0c372edb6fa0a76a5e5fbb5b3a74857c5701d
