@import url("https://fonts.googleapis.com/css2?family=Bitcount+Prop+Double:wght@100..900&family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

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

body {
  font-family: "Roboto", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: black;
}

p {
  font-size: 1rem; /* 1rem = 16px */
  line-height: 1.9rem;
}

p, span, label, input, textarea, li {
  color: rgb(121, 121, 121);
}

a {
  text-decoration: none;
}

.main-container {
  width: 1200px;
  margin: 0 auto;
}

@media screen and (max-width: 1200px) {
  .main-container {
    width: 90%;
  }
}

/* logo and navigation */
.nav {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 2rem;
}

.logo a {
    color:  rgb(185, 81, 190);
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li a {
    color: rgb(0, 0, 0);
}

/* burger */

.burger div {
 width: 25px;
 height: 2px;
 background-color: black;
 margin: 7px;
 transition: all .3s;
 z-index: 99;
}

.burger {
    display: none;
    z-index: 99;
    position: fixed;
    top: 33px;
    right: 35px;
}

/* Home Section*/
#home {
  height: 720px;
  display: grid; /* ini pnting jg ya buat 2 columns*/
  grid-template-columns: 1fr 1fr;   /*biar bersebelahan/ 2 columns*/
  align-items: center;
}

.pre-tittle {
  text-transform: uppercase; /* biar hurufny besar smua */
  letter-spacing: 0.5rem;
  color: rgb(78, 78, 78);
  position: relative;
  padding-left: 40px;
  width: fit-content;
  font-size: .9rem;
}

.pre-tittle::before {
  content: "";
  width: 30px;
  height: 1px;
  background-color: rgb(161, 161, 161);
  position: absolute;
  display: block;
  left: 0;
  top: 50%;

}

.home-name {
  font-size: 3rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

.home-name span {
  color: rgb(218, 97, 223);
}

.home-right img {
  width: 90%;
}

.home-right {
  display: flex;
  justify-content: center;
}

/* About Section */
#about {
  background-color: rgb(252, 238, 251);
  padding: 6rem 0;
}

.about .pre-tittle {
  margin: 0 auto;
}

.about h4 {
  margin: 1.5rem 0;
  font-size: 2rem;
  color: rgb(88, 88, 88);
}

/* Projects Section */
#projects {
  padding: 6rem 0;
}

.section-tittle {
  margin: 1rem 0 4rem;
  font-size: 2rem;
}

/* Layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.portofolio {
  border-radius: 0.7rem;
  overflow: hidden; 
  border: 1px solid rgb(107, 70, 96);
}

.portofolio-cover {
  height: 250px;
}

.portofolio-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portofolio-info {
  padding: 2rem 1.5rem;
}

.portofolio-tittle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.portofolio h4 {
  height: 500;
  font-size: 1.05rem;
}

.portofolio-tittle a svg:hover {
  fill: rgb(214, 163, 195);
}

.portofolio-tittle a svg {
  transition: 0.2s ease-in-out;
}

.portofolio-tags {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.portofolio-tags div {
  font-size: 0.9rem;
  border: 1px solid rgb(107, 70, 96);
  padding: 0.4rem 1rem;
}

/* Contact Section */
#contact {
  padding: 6rem 0;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.contact-form div {
  margin-bottom: 1.4rem;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.75rem 1.4rem;
  font-family: "Roboto", sans-serif;
  background-color:rgb(252, 238, 251);
  border: 1px solid rgb(190, 137, 170);
  border-radius: 3px;
  resize: none;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: rgb(189, 159, 187);
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border: 1px solid rgb(100, 0, 89);
}

.btn-submit {
  width: 100%;
  padding: 0.75rem 1.3rem;
  background-color: rgb(212, 104, 185);
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.btn-submit:hover {
  background-color: rgb(151, 52, 135);
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item-icon {
  background: rgb(252, 238, 251);
  width: 53px;
  height: 53px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
 fill: rgb(160, 69, 145); /* untuk ngubah warna icon pake fill oke? */
}

.contact-item-detail h4 {
  margin: 0.6rem;
}

/* Footer */
footer {
  padding: 4rem 0 ;
  background-color: rgb(252, 238, 251);
  text-align: center;
}

.footer-icons {
  margin-bottom: 1rem;
}

.footer-icons a {
  margin: 0 0.5rem;
}

.footer-icons svg {
  fill: rgb(160, 69, 145);
}

.footer-icons a:hover svg{
  fill: rgb(66, 26, 60);
}