@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap");

:root {
  --primaryTextColor: #232e35; /* Untuk title atau judul */
  --secondaryTextColor: #656d72; /* Untuk text biasa seperti paragraph contohnya */

  --borderColor: #f1f1f1;
  --lineColor: #d9d9d9; /* untuk line di pre-title */

  --primaryBackgroundColor: #fff;
  --secondaryBackgroundColor: #fbfbfb;
  --thirdBackgroundColor: #f5f3fe;

  --primaryIconColor: #7e74f1;
  --primaryIconColorHover: #5d51e8;

  --sectionPadding: 6rem 0;

  --itemBorderRadius: 0.7rem;
}

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

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

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%; /* mencegah auto-zoom di iOS */
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
  color: var(--primaryTextColor);
}

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

p,
span,
label,
input,
textarea,
li {
  color: var(--secondaryTextColor);
}

a {
  text-decoration: none;
}

/* End Preparation */

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

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

/* Buttons */
.btn {
  padding: 1rem 1.5rem;
  background: white;
  border: 1.5px solid var(--borderColor);
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.btn:hover {
  box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

/* Titles */
.section-title {
  margin: 1rem 0 4rem;
  font-size: 2rem;
}

.pre-title {
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  color: var(--secondaryTextColor);
  position: relative;
  padding-left: 40px;
  width: fit-content;
  font-weight: 400;
  font-size: 0.9rem;
}

.pre-title::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--lineColor);
  position: absolute;
  display: block;
  left: 0;
  top: 50%;
}

/* Layouts */
.grid-3 {
  display: grid;
  /* grid-template-columns: 1fr 1fr 1fr; use this first, use code below when its time for explaining responsive design part */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

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

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

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

.logo a {
  color: white;
}

/* homepage Menu */
nav ul li {
  display: flex;
  align-items: center;
}

nav ul li a {
  color: white;
}
nav a:hover{
  color:greenyellow;
}
/* Burger - Save for later on video */
.burger div {
  width: 25px;
  height: 2px;
  background-color: black;
  margin: 7px;
  transition: all 0.3s;
  z-index: 99;
}

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

/* Hero Section */
#hero {
  /* height: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

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

.hero-name span {
  color: var(--primaryIconColor) !important;
}

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

.hero-right {
  display: flex;
  justify-content: center; */
} 
  .container{
    width: 90%;
    margin-inline: auto;
}

header{
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgb(131, 96, 195), rgb(46, 191, 145));
    /* background-image:linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0.4)),url('../images/bg1.png'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    max-width: 100%;
}

.homepage{
    width: 100%;
    height: 10%;
    padding: 20px 0 10px 0;
    /* background-color: rgba(255, 255, 255, 0.4); */
    border-radius:5px;
}

.homepage .box-homepage{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.homepage .box-homepage .box:nth-child(1) h1{
    font-size: 38px;
    color: white;
}

.homepage .box-homepage .box:nth-child(2) ul{
    display: flex;
    flex-direction: row;
}

.homepage .box-homepage .box:nth-child(2) ul li{
    list-style-type: none;
    margin-left: 40px;
}

.homepage .box-homepage .box:nth-child(2) ul li a{
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.homepage .box-homepage .box:nth-child(2) ul li a:hover{
    color: greenyellow;
}

.homepage .box-homepage .box:nth-child(3){
    display: none;
}

.homepage .box-homepage .box:nth-child(2) ul li i{
    display: none;
}
/* .profile-image {
  position:absolute;
  }
   */
.custom-card {
  border-radius: 15px;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 95%;
  height: 95%;
  margin:auto;
}

.hire {
  transition: background-color 0.3s, color 0.3s;
  background-color: rgba(255, 255, 255, 0.3);
  font-family: 'Roboto', sans-serif;
  border: 2px solid black;
  color: black;
  padding: 15px 30px;
  border-radius: 10px;
}

.hire:hover,.hire:active,.hire:focus {
  border-color: black;
  background-color: black;
  color: white;
}
.contact {
  background-color: #2C3531; /* Background hitam */
  color: #fff; /* Teks putih */
}

.contact .font-outfit {
  font-weight: bold;
}

.contact a.nav-link {
  color: #fff; /* Link berwarna putih */
  text-decoration: none; /* Hilangkan garis bawah pada link */
  transition: color 0.3s ease;
}

.contact a.nav-link:hover {
  color: #ccc; /* Warna link saat hover */
}

.contact hr {
  border-top: 1px solid #fff; /* Warna garis putih */
}

.contact span {
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
}
/* Services Section */
#services {
  background-color: var(--secondaryBackgroundColor);
  padding: var(--sectionPadding);
}
.services .main-container {
  width: 100%;
  height: auto;
  padding: 20px;
  background-color: #f1faee;
}

.services .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.services .box-about {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
}

.services .box {
  flex: 1;
}

.services .box:nth-child(1) {
  padding-right: 30px;
}

.services .box:nth-child(1) p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.services .box:nth-child(2) {
  display: flex;
  justify-content: flex-end; /* Align image to the right */
  padding-left: 20px; /* Add some padding to shift the image right */
}

.services .box:nth-child(2) img {
  width: 400px;
  height: auto;
  border-radius: 21px;
  box-shadow: -18px 18px 33px #b5b5b5, 18px -18px 33px #ffffff;
}


.services .pre-title {
  margin: 0 auto;
}

.services-title {
  text-align: center;
}

.service {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--primaryBackgroundColor);
  border-radius: var(--itemBorderRadius);
}

.service h4 {
  margin: 1.5rem 0;
  font-weight: 500;
  font-size: 1.05rem;
}

.service-icon {
  background: var(--thirdBackgroundColor);
  width: fit-content;
  margin: 0 auto;
  padding: 1rem 1.3rem;
  border-radius: 0.5rem;
}

.service-icon svg {
  fill: var(--primaryIconColor);
}

.service-icon {
  background: var(--thirdBackgroundColor);
  width: fit-content;
  margin: 0 auto;
  padding: 1rem 1.3rem;
  border-radius: 0.5rem;
}

.service-icon svg {
  fill: var(--primaryIconColor);
}

/* Portfolios */
#portfolios {
  padding: var(--sectionPadding);
}

.portfolio {
  border-radius: var(--itemBorderRadius);
  overflow: hidden; /* supaya gambar yang diatas itu dia ngikut border radiusnya, karena yang dikasih border radius disini adalah div portfolio ini */
  border: 1px solid var(--borderColor);
  box-shadow:  -10px 10px 5px #bebebe,
            10px -10px 5px #ffffff;
}

.portfolio-cover {
  height: 250px;
}

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

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

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

.portfolio h4 {
  font-weight: 500;
  font-size: 1.05rem;
}

.portfolio-title a svg:hover {
  fill: var(--primaryIconColor);
}

.portfolio-title a svg {
  transition: 0.2s ease-in-out;
}

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

.portfolio-tags div {
  font-size: 0.9rem;
  border: 1px solid var(--borderColor);
  padding: 0.4rem 1rem;
  color: var(--secondaryTextColor);
}

.portfolio-tags div {
  font-size: 0.9rem;
  border: 1px solid var(--borderColor);
  padding: 0.4rem 1rem;
  color: var(--secondaryTextColor);
}

/* Skills and Education */
#skills {
  padding: var(--sectionPadding);
  background: var(--secondaryBackgroundColor);
}

.skills-grid {
  display: grid;
  /* grid-template-columns: 40% 60%; */
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.education {
  display: flex;
  gap: 1rem;
}

.education .line {
  padding: 0 0.7rem;
}

.education .line div {
  width: 2px;
  height: 100%;
  background: var(--borderColor);
  position: relative;
}

.education-info p {
  margin: 0.6rem 0 1.4rem;
}

.education-years {
  margin-bottom: 3rem;
}

/* The dot on the line */
.education .line div:before {
  content: "";
  width: 15px;
  height: 15px;
  background: var(--borderColor);
  border-radius: 50%;
  position: absolute;
  left: -6px;
}

/* Right side of Skills */
.skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.5rem;
}

.skills-right ul {
  line-height: 2rem;
  padding: 0 1rem;
}


/* Tombol download utama */
.download-btn {
  display: inline-block;
  background: linear-gradient(90deg, rgb(131, 96, 195), rgb(46, 191, 145));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Efek hover */
.download-btn:hover {
  background: linear-gradient(90deg, rgb(115, 83, 180), rgb(35, 165, 125));
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  color: #000;
}

/* Responsive ukuran tombol di layar kecil */
@media (max-width: 640px) {
  .download-btn {
    font-size: 0.8rem;
    padding: 6px 16px;
  }
}