:root {
  --primary-color: #ffffff;
  --secondary-color: #ff5470;
  --background-color: #111111;
  --surface-color: #07ffd6;
  --text-color: #ffffff;
  --bigtext-color:#00c6ff;
  --accent-color: #2cb67d;
  --background1-color: #1b1b1b;
  --button-background: linear-gradient(45deg, #00c6ff, #0072ff);
  --hover-background: linear-gradient(45deg, #0072ff, #00c6ff);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

/*lebar sebuah elemen belakang navbar*/
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Navbar Styles */
#navbar {
  background-color: var(--background-color);
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
}
/*memberi jarak*/
#navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/*mengatur teks logo*/
.logo a {
  color: var(--bigtext-color);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
}
.nav-links {
  display: flex;
  list-style: none;
  font-size: 20px;
}
.nav-links li {
  margin-left: 30px;
}
.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

#anchor-id:hover {
  color: #1e90ff;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px;
  transition: all 0.3s ease;
}

/* Hero Section Styles */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
              url('background.jpg');
}

.title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.highlight {
  color: var(--bigtext-color);
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-color);
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background:linear-gradient(45deg, #0072ff, #00c6ff);
  transform: translateY(-3px);
}

/* About Section Styles */
.about {
  padding: 100px 0;
  background-color: var(--background1-color);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  color: var(--bigtext-color);
}

.about-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.about-text {
  flex: 1;
  font-size: 24px;
  padding-right: 50px;
  color: var(--text-color);
}
/*progress bar*/
::selection{
  color: #fff;
  background: #6665ee;
}

.skill-bars{
  padding: 25px 30px;
  width: 600px;
  box-shadow: 5px 5px 20px rgba(0,0,0,0.2);
  border-radius: 10px;
  background-color: var(--background-color);
}
.skill-bars .bar{
  margin: 20px 0;
}
.skill-bars .bar:first-child{
  margin-top: 0px;
}
.skill-bars .bar .info{
  margin-bottom: 5px;
}
.skill-bars .bar .info span{
  font-weight: 500;
  font-size: 17px;
  color: var(--bigtext-color);
  opacity: 0;
  animation: showText 0.5s 1s linear forwards;
}
@keyframes showText {
  100%{
    opacity: 1;
  }
}
.skill-bars .bar .progress-line{
  height: 10px;
  width: 100%;
  background: #f0f0f0;
  position: relative;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 10px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.05),
              0 1px rgba(255,255,255,0.8);
  animation: animate 1s cubic-bezier(1,0,0.5,1) forwards;
}
@keyframes animate {
  100%{
    transform: scaleX(1);
  }
}
.bar .progress-line span{
  height: 100%;
  position: absolute;
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #12c2e9, #c471ed, #f64f59);
  animation: animate 1s 1s cubic-bezier(1,0,0.5,1) forwards;
}
.bar .progress-line.html span{
  width: 80%;
}
.bar .progress-line.css span{
  width: 25%;
}
.bar .progress-line.javascript span{
  width: 0%;
}
.bar .progress-line.python span{
  width: 5%;
}
.bar .progress-line.mysql span{
  width: 0%;
}
.progress-line span::before{
  position: absolute;
  content: "";
  top: -10px;
  right: 0;
  height: 0;
  width: 0;
  border: 7px solid transparent;
  border-bottom-width: 0px;
  border-right-width: 0px;
  border-top-color: #000;
  opacity: 0;
  animation: showText2 0.5s 1.5s linear forwards;
}
.progress-line span::after{
  position: absolute;
  top: -28px;
  right: 0;
  font-weight: 500;
  background: #000;
  color: #fff;
  padding: 1px 8px;
  font-size: 12px;
  border-radius: 3px;
  opacity: 0;
  animation: showText2 0.5s 1.5s linear forwards;
}
@keyframes showText2 {
  100%{
    opacity: 1;
  }
}
.progress-line.html span::after{
  content: "80%";
}
.progress-line.css span::after{
  content: "25%";
}
.progress-line.javascript span::after{
  content: "0%";
}
.progress-line.python span::after{
  content: "5%";
}
.progress-line.mysql span::after{
  content: "0%";
}

/* Certificates Section Styles */
.certificates {
  padding: 120px 0;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.certificate-card {
  background-color: var(--background1-color);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-10px);
}

.certificate-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.certificate-card h3 {
  padding: 20px;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.certificate-card p {
  padding: 0 20px 20px;
  color: var(--text-color);
}

/* Projects Section Styles */
.projects {
  padding: 100px 0;
  background-color: var(--background1-color);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--background-color);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--bigtext-color);
}

.project-info p {
  margin-bottom: 15px;
}

.project-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--button-background);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--hover-background);
}

/* Contact Section Styles */
.contact {
  padding: 100px 0;
}

#contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--text-color);
  border-radius: 5px;
  background-color: var(--text-color);
  color: var(--bigtext-color);
}

textarea {
  height: 150px;
}

.submit-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--button-background);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.submit-btn:hover {
  background: var(--hover-background);
}

/* Footer Styles */
footer {
  background-color: var(--background1-color);
  color: var(--text-color);
  padding: 20px 0;
  text-align: center;
}

.social-links {
  margin-top: 10px;
}

.social-links a {
  color: var(--text-color);
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--surface-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 25px 0;
  }

  .burger {
    display: block;
  }

  .about-content {
    flex-direction: column;
  }

  .about-text {
    padding-right: 0;
    margin-bottom: 30px;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  margin: auto;
  display: block;
  margin-top: 170px;
  max-width:60%; /* Ubah nilai ini untuk mengatur lebar maksimal gambar */
  max-height: 60%; /* Ubah nilai ini untuk mengatur tinggi maksimal gambar */
  object-fit: contain; /* Membuat gambar diisi dalam elemen img tanpa mempengaruhi rasio aspek */
}

.close {
  position: absolute;
  top: 80px;
  right: 25px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}