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

html {
  scroll-behavior: smooth;
}

:root {
    --primaryTextColor: #232e35;
    --secondaryTextColor: #656d72;
    --borderColor: #f1f1f1;
    --lineColor: #d9d9d9;
    --primaryBackgroundColor: #fff;
    --secondaryBackgroundColor: #fbfbfb;
    --thirdBackgroundColor: #fbfbfb;
    --primaryIconColor: #1E90FF;
    --primaryIconColorHover: #00BFFF;
    --colorWhite: #000;
    --sectionPadding: 6rem 0;
    --itemBorderRadius: 0.7rem;
    --colorBlack: #fff;
    
}

.dark-mode {
    --primaryTextColor: #e0e0e0;
    --secondaryTextColor: #b0b0b0;
    --borderColor: #333;
    --lineColor: #444;
    --primaryBackgroundColor: #1e1e1e;
    --secondaryBackgroundColor: #121212;
    --thirdBackgroundColor: #292929;
    --primaryIconColor: #00BFFF;
    --primaryIconColorHover: #1E90FF;
    --colorWhite: #fff;
    --colorBlack: #000;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: var(--primaryBackgroundColor);
    color: var(--primaryTextColor);
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6, strong {
    color: var(--primaryTextColor);
    transition: color 0.3s ease-in-out;
}

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

a {
    text-decoration: none;
    color: var(--primaryTextColor);
}

button.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.icon {
    width: 24px;
    height: 24px;
    fill: var(--primaryIconColor);
    transition: fill 0.3s;
}

.icon:hover {
    fill: var(--primaryIconColorHover);
}


nav {
  position: fixed;
  top: 20px; /* Jarak dari bagian atas layar */
  right: 20px; /* Jarak dari sisi kanan layar */
  z-index: 1000; /* Tetap di atas elemen lain */
  background-color: var(--colorBlack); /* Latar belakang untuk visibilitas */
  padding: 10px; /* Tambahkan padding agar tidak terlalu mepet */
  border-radius: 8px; /* Membuat sudut membulat */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Tambahkan bayangan untuk efek */
  margin-top: 7px;
}

nav li {
    display: inline-block;
    margin: 0rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.7rem 0.7rem;
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

nav a:hover {
    background-color: var(--primaryIconColor); /* Yellow-orange color */
    border-radius: 10px;
}

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

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

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

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

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

a {
  text-decoration: none;
}

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

@media screen and (max-width: 1200px) {
  .main-container {
    width: 90%;
  }
}
/* Titles */
.section-title {
  margin: 1rem 0 4rem;
  font-size: 2rem;
}

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

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

/* Layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}
/* Logo And Navigation Menu */
.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: var(--primaryTextColor);
}

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

nav ul li a {
  color: var(--primaryTextColor);
}

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

.burger div {
    width: 25px;
    height: 2px;
    margin: 7px 0;
    background-color: var(--colorWhite);
    transition: all 0.3s ease;
}

.burger.active div:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.active div:nth-child(2) {
    opacity: 0;
}

.burger.active div:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.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: 790;
  margin: 0.5rem 0 1rem;
}

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

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  width: 210px; /* Ukuran lebih besar sedikit dari gambar */
  height: 210px;
  background-color: var(--primaryIconColor); /* Warna latar belakang */
  border-radius: 50%; 
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--colorBlack); /* Border luar pertama */
  box-shadow: 0 0 0 1px var(--primaryIconColor); /* Border luar kedua */
 
}

.image-container img {
  width: 200px;
  height: 200px;
  border-radius: 50%; /* Membuat gambar bulat */
  object-fit: cover; /* Memastikan gambar tetap sesuai dalam lingkaran */
}

/*Services Section*/
#services {
  background-color: var(--secondaryBackgroundColor);
  padding: var(--sectionPadding);
}

.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);
  border: 0.5px solid var(--primaryIconColor); /* Border sederhana */
    border-radius: 10px;
}

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

.service-icon {
  background: var(--thirdBackgroundColor);
  width: fit-content;
  margin: 0 auto;
  border: 0.5px solid var(--primaryIconColor); /* Border sederhana */
  padding: 1rem 1.3rem;
  border-radius: 0.5rem;
}

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

#portofolios {
  padding: var(--sectionPadding);
}

.portofolio {
  border-radius: var(--itemBorderRadius);
  overflow: hidden;
  border: 1px solid var(--borderColor);
}

.portofolio-cover {
  height: 200px;
}

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

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

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

.portofolio h4 {
  font-weight: 500px;
  font-size: 1.5rem;
  margin-right: 1rem;
}

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

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

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

.portofolio-tags div {
  font-size: .7rem;
  border: 1px solid var(--borderColor);
  padding: .4rem 1rem;
  color: var(--secondaryTextColor);
  margin-bottom: 1rem;
}

.portofolio-link {
  fill: var(--colorWhite);
}



/*Skills and education */
#education {
  padding: var(--sectionPadding);
  background: var(--secondaryBackgroundColor);
}
/* Container untuk Education dan Skills */
.education-skills {
  display: block; /* Mengatur tumpukan secara vertikal */
  padding: 16rem; /* Padding untuk seluruh section */
  background: var(--secondaryBackgroundColor); /* Background diterapkan untuk keseluruhan container */
  width: 100%; /* Membuat background memenuhi lebar penuh */
}

.edu-title {
  font-size: 2rem;
  margin-bottom: 5px;
}

.edu.title p {
  margin-bottom: 5px;
}
/* Berikan padding ke dalam elemen Education dan Skills untuk membuat teks menjauh dari tepi */
.education, .skills {
  padding: 2rem ; /* Padding horizontal lebih besar (5rem) agar teks lebih ke tengah */
  background-color: transparent; /* Hapus background di elemen individual */
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.edu {
  display: flex;
  gap: 2rem;
  align-items: flex-start; /* Agar judul dan garis sejajar */
}

.edu .line {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Pastikan titik di tengah */
  align-items: center;
  position: relative;
  height: 100%;
}

.edu .line .dot {
  width: 15px;
  height: 15px;
  background: var(--primaryIconColor);
  border-radius: 50%;
  position: absolute;
  top: 0; /* Titik berada di atas */
  margin-top: 1rem;
}

.edu .edu-info {
  position: relative;
  padding-left: 30px; /* Menjauhkan teks dari garis */
}

.edu .edu-title {
  font-size: 1.6rem;
  margin-bottom: 5px;
}

/* Garis yang menghubungkan titik */
.edu .line::before {
  content: "";
  width: 2px;
  height: 100%;
  background: var(--borderColor);
  position: absolute;
  top: 15px; /* Sesuaikan dengan tinggi titik */
  left: 50%;
  transform: translateX(-50%);
}

/* Garis dan titik untuk setiap pengalaman */
.edu:not(:last-child) .line::before {
  height: 100%;
}

.edu-years {
  margin-bottom: 1rem; /* Sesuaikan nilai sesuai kebutuhan */
}



.exp-list {
  color: var(--secondaryTextColor);
  display: flex; /* Mengubah grid ke flexbox */
  flex-wrap: wrap; /* Membuat item membungkus ke bawah ketika ruang tidak cukup */
  gap: 0.8rem; /* Jarak antar item */
  margin-top: 1.5rem; /* Jarak atas antara list dan elemen sebelumnya */
  margin-bottom: 1.5rem; /* Jarak bawah agar sesuai dengan pengalaman ke-2 */
}


.exp-list ul {
  list-style-type: none; /* Menghilangkan bullet points */
  padding: 0; /* Menghapus padding default */
  margin: 0; /* Menghapus margin default */
  width: 100%; /* Membuat ul mengisi lebar container */
}

.exp-list li {
  font-size: 1.1rem; /* Ukuran font */
  color: var(--textColor); /* Warna teks */
  line-height: 1.6; /* Menambah jarak antar baris teks */
  padding-left: 1.5rem; /* Memberikan ruang di kiri untuk titik */
  white-space: normal; /* Membuat teks bisa membungkus */
  position: relative; /* Posisi relatif untuk titik */
  margin-bottom: 0.8rem; /* Menambahkan jarak antar item */
  flex: 1 1 100%; /* Membuat item mengambil seluruh lebar baris (100%) dan fleksibel */
}

/* Menambahkan titik kecil untuk setiap item */
.exp-list li::before {
  content: "•"; /* Simbol titik */
  color: var(--secondaryTextColor); /* Warna titik */
  position: absolute;
  left: 0; /* Titik berada di paling kiri */
  top: 50%; /* Menyelaraskan titik di tengah secara vertikal */
  transform: translateY(-50%); /* Posisi titik rata tengah */
}


.edu-title span {
  color: var(--secondaryTextColor);
}

.skill-title span {
  color: var(--primaryIconColor);
}

.skill-title {
  font-size: 2rem;
  margin-bottom: 5px;
}

.skill .skill-title {
  font-size: 1.6rem;
  margin-bottom: 5px;
}


/* Contact Section */
#contact {
  padding: var(--sectionPadding);
}

.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: .75rem 1.3rem;
  font-family: "Roboto", sans-serif;
  background: var(--secondaryBackgroundColor);
  border: 1px solid var(--borderColor);
  border-radius: 5px;
  resize: none;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: #9d9fa1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border: 1px solid #7d7d7d;
}

.btn-submit {
  width: 100%;
  padding: .75rem 1.3rem;
  background-color: var(--primaryIconColor);
  color: var(--colorBlack);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.btn-submit:hover {
  background: var(--primaryIconColorHover);
}

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

.contact-item-icon {
  background: var(--thirdBackgroundColor);
  width: 53px;
  height: 53px;
  border-radius: 9px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

/*Footer*/
footer {
  padding: 4rem 0;
  background: var(--secondaryBackgroundColor);
  text-align: center;
}

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

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

.footer-icons svg {
  fill: var(--primaryIconColor);
}

.footer-icons a:hover svg {
  fill: #000;
  
}
.hero-button {
  background-color: var(--primaryIconColor); /* Ganti dengan warna yang diinginkan */
  color: var(--colorBlack);
  padding: 10px 20px;
  text-decoration: none; /* Menghilangkan garis bawah pada tautan */
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  display: inline-block; /* Agar tombol terlihat sepero tombol blok */
  margin-top: 5rem;
}

.hero-button:hover {
  background-color: var(--primaryIconColorHover); /* Ganti dengan warna hover yang diinginkan */
}

.spin {
    animation: spin 0.5s ease-in-out;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.whatsapp-link {
  background-color: var(--primaryIconColor); /* Warna latar belakang hijau khas WhatsApp */
  color: var(--colorBlack); /* Warna teks */
  padding: 4px 10px; /* Padding yang lebih kecil untuk latar belakang */
  border-radius: 5px; /* Membuat sudutnya melengkung */
  text-decoration: none; /* Menghapus garis bawah pada link */
 
  margin-left: 5px; /* Memberikan jarak antara "or" dan link */
}

.whatsapp-link:hover {
  background-color: var(--secondaryTextColor); /* Mengubah warna latar belakang saat di-hover */
  border-color: #25D366; /* Mengubah warna border saat di-hover */
}



