*,
html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: rgb(255, 255, 255);
}

/* NAVBAR */
.navbar {
  padding: 0;
}

.container-fluid {
  background-color: rgb(124, 1, 1);
  min-height: 100px;
}

/* NAV MENU */
.ul-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  flex-wrap: wrap;
  text-decoration: none;
  list-style: none;
}

.li-nav {
  font-weight: bold;
}

.li-nav:hover {
  border-bottom: 1px solid white;
}

.li-nav a {
  text-decoration: none;
  color: white;
}

/* ABOUT IMAGE */
.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: 0.3s;
  border-radius: 5px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.banner-image:hover {
  transform: scale(0.97);
}

/* TEXT */
.description {
  margin-left: 80px;
  width: 60%;
  line-height: 1.8;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.intro {
  margin: 90px;
  font-size: 1.2rem;
  line-height: 1.8;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  white-space: pre-line;
  letter-spacing: 1px;
}

/* TITLE */
.portofolio,
.experience {
  padding: 30px 0;
  display: flex;
  justify-content: center;
  color: rgb(124, 1, 1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  text-align: center;
}

.portofolio {
  letter-spacing: 10px;
}

/* CARD */
.card {
  width: 100%;
  transition: 0.3s;
}

.card:hover {
  background-color: rgb(124, 1, 1);
  color: white;
  transform: scale(1.03);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.card-img-top {
  padding: 20px;
  max-width: 90%;
  height: 200px;
  object-fit: contain;
  margin: auto;
}

.card-text {
  padding: 10px;
  text-align: justify;
  color: black;
}

.card:hover .card-text {
  color: white;
}

.btn {
  background-color: rgb(124, 1, 1);
  color: white;
  margin-top: auto;
}

.card:hover .btn {
  background-color: white;
  color: rgb(124, 1, 1);
}

/* FOOTER */
.footer {
  background-color: rgb(124, 1, 1);
  margin-top: 90px;
  box-shadow: 0px -8px 16px rgba(0, 0, 0, 0.2);
  padding-bottom: 40px;
}

.h3-footer {
  color: white;
  display: flex;
  justify-content: center;
  padding-top: 60px;
  font-weight: bold;
}

.h4-footer {
  color: white;
  margin-left: 150px;
  padding-top: 40px;
}

.icon-footer {
  margin-left: 150px;
  font-size: 30px;
  letter-spacing: 10px;
}

.icon-style {
  color: white;
}

.h1-footer {
  color: white;
  text-align: center;
  font-size: 12px;
  padding-top: 40px;
}

/* SCROLL TOP */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgb(124, 1, 1);
  color: white;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.scroll-top:hover {
  transform: translateY(-5px);
}

/* ===================== */
/* RESPONSIVE (HP TABLET) */
/* ===================== */

@media (max-width: 768px) {

  .description {
    margin-left: 20px;
    width: 90%;
    font-size: 14px;
  }

  .banner-image{
    transform: scale(0.95);
    max-width: 90%;
  }

  .card{
    max-width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: 35px;
  }

  .myname{
    margin-inline-start: 120px;
    margin-top: 30px;
  }

  .intro {
    margin: 20px;
    font-size: 14px;
  }

  .ul-nav {
    justify-content: center;
  }

  .li-nav{
    margin-inline-start: 15px;
  }

  .banner-image{
    margin-inline-end: 50px;
  }

  .portofolio {
    font-size: 20px;
    letter-spacing: 5px;
  }

  .experience {
    font-size: 18px;
  }

  .h4-footer,
  .icon-footer {
    margin-left: 30%;
  }

  .h4-footer{
    margin-left: 33%;
  }

  .scroll-top {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}