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

body {
    font-family: 'Poppins', sans-serif;
    color: white;
    background-color: #0b0f19;
    z-index: 5;
}
.judul {
    padding-left: 80px;
    font-family: 'Poppins', sans-serif;
    
}
#typewriter {
  font-weight: bold;
  color: #fff;
  font-size: 55px;
}
#typewriter1 {
  font-weight: bold;
  color: #fff;
}
.container {
    margin: 0 auto;
    padding-left: 400px;
    padding-top: 5px;
    font-family: 'Poppins', sans-serif;
}
.section .container1 {
    font-family: 'Poppins', sans-serif;
    position: relative;
    max-width: 900px;
    z-index: 1000;
    margin-top: 40px;
}

header {
    display: flex;
    justify-content: space-between;
    background-color: #0b0f19;
    padding: 15px 0;
    margin-bottom: 5px;
}

header h1 {
    color: #FF4B5C;
    font-size: 24px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #FF4B5C;
}

.section {
    padding: 100px 0;
}
.section h1 {
    font-size: 40px;
    padding-left: 80px;
    margin-bottom: 20px;
    max-width: 800px;
}
.section h2 {
    color: #FF4B5C;
    font-size: 30px;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    padding-left: 80px;
    max-width: 400px;
}

.section p {
    color: #E0E0E0;
    font-size: 15px;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
    padding-left: 80px;
    max-width: 1000px;
}
.icon {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    padding-right: 539px;
    flex-direction: row;
    margin-top: 20px;
}
.icon a {
    color: #0b0f19;
    font-size: 17px;
}
.icon img {
    height: 37px;
    width: 37px;
}

footer {
    margin-top: 50px;
    margin-left: 65px;
    background-color: #0b0f19;
    align-items: center;
}

footer p {
    color: #FF4B5C;
}

.image img {
   position: absolute;
   top: -50px;
   right: -310px;
   border-radius: 50%;
   max-width: 1000px;
   width: 310px;
   height: 330px;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0,2);
}

.bg section {
    position: absolute;
    width: 100vw;
    height: 83vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    overflow: hidden;
  }
  
.bg section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(#000000, #131b63, #000000);
    animation: animate 7s linear infinite;
  }
  

  @keyframes animate {
    0% {
      transform: translateY(-100%);
    }
    100% {
      transform: translateY(100%);
    }
  }
  

.bg section span {
    position: relative;
    display: block;
    width: calc(6.25vw - 2px);
    height: calc(6.25vw - 2px);
    background: #0b0f19;
    z-index: 2;
    transition: 1.5s;
  }
  
.bg section span:hover {
    background: rgb(255, 0, 98); /* Yellow on hover */
    transition: 0s;
  }
  
  input[type="submit"]:active {
    opacity: 0.6;
  }
  
  /* Media queries for responsive design */
  @media (max-width: 900px) {
    .bg section span {
      width: calc(10vw - 2px);
      height: calc(10vw - 2px);
    }
  }
  
  @media (max-width: 600px) {
    .bg section span {
      width: calc(20vw - 2px);
      height: calc(20vw - 2px);
    }
  }

  .skills-section {
    display: flex;
    justify-content: space-between;
    padding: 50px;
    z-index: 1000;
    position: relative;
    margin-top: 50px;
  }
  
  .skills-intro {
    width: 50%;
  }
  
  .skills-intro h4 {
    color: #ff4b5c;
    font-weight: 600;
    margin-bottom: 10px;
  }
  
  .skills-intro h1 {
    font-size: 48px;
    margin: 10px 0;
  }
  
  .skills-intro p {
    margin: 15px 0;
    line-height: 1.6;
  }
  
  .skills-intro button {
    background-color: transparent;
    border: 2px solid #ff4b5c;
    padding: 10px 20px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .skills-intro button:hover {
    background-color: #ff4b5c;
  }
  

  .skills {
    width: 45%;
  }
  
  .skill {
    margin-bottom: 20px;
  }
  
  .skill p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: #E0E0E0;
  }
  
  .progress-bar {
    background-color: #0f3460;
    height: 8px;
    border-radius: 5px;
  }
  
  .fill {
    height: 100%;
    background-color: #ff4b5c;
    border-radius: 5px;
  }
  .about {
    justify-content: space-between;
    z-index: 1000;
    position: relative;
  }
  .about img {
    position: absolute;
    border-radius: 50%;
    width: 290px;
    height: 310px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0,2);
    z-index: 1000;
    margin-top: 95px;
    margin-left: 150px;
  }
  .about-me{
    position: absolute;
    margin-left: 600px;
    max-width: 620px;
  }

  .about-me h2 {
    margin-top: 62px;
    position: absolute;
    font-size: 40px;
    color: #FF4B5C;
  }

  .about-me p {
    text-align: justify;
    line-height: 1.5;
    margin-top: 135px;
    font-family: 'Poppins', sans-serif;
    font-size: 17;
    color: #E0E0E0;
}

  .contact span {
    font-weight: bold;
    color: #FF4B5C;
    position: absolute;
  }
  .contact1 {
    position: absolute;
    margin-left: 600px;
    margin-top: 335px;
  }
  .contact2 {
    position: absolute;
    margin-left: 900px;
    margin-top: 335px;
  }

  .experience-section {
    display: flex;
    gap: 20px;
    padding: 40px;
  }

  .experience-card {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    width: 450px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
  }

  .experience-card:hover {
    background-color: #30d11b;
    color: #000;
    transform: scale(1.05);
  }

  .experience-card .date {
    font-size: 0.9rem;
    color: #E0E0E0;
  }

  .experience-card .title {
    font-size: 1.5rem;
    margin: 10px 0;
    color: #FF4B5C;
  }

  .experience-card .description {
    margin-top: 15px;
    line-height: 1.5;
    color: #cac9c9;
    font-size: 10px;
  }

  .experience {
    z-index: 1000;
    position: relative;
  }
  .experience h1 {
   padding-left: 575px;
   color: #FF4B5C;
  }
  .experience p {
    width: 1150px;
    padding-left: 200px;
    text-align: center;
    color: #E0E0E0;
    font-size: 1rem;
  }

  /* Section Styles */
.portfolio-section {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  z-index: 1000;
}

.portfolio-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.highlight {
  color: #fff;
}

/* Filter Buttons */
.portfolio-filters {
  margin-bottom: 20px;
}

.filter-btn {
  background: #fff;
  border: none;
  color: #12172a;
  margin: 0 10px;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.filter-btn.active, .filter-btn:hover {
  background: #ff4d5a;
  color: #fff;
}

/* Portfolio Grid */
.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.portfolio-item {
  width: 400px;
  height: 230px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.portfolio-image1 {
  width: 100%; 
  height: auto; 
  display: block;
}
.portfolio-item[data-category="infografis"] img {
  width: 300px;
  height: auto;
  margin: 15px;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s;
}

.portfolio-item[data-category="infografis"] {
  height: auto;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  width: 90%;
  max-width: 500px;
}

.modal-content img {
  width: 100%;
  border-radius: 8px;
}

.modal-content p {
  color: #333;
  margin-top: 10px;
}

.close-btn {
  position: absolute;
  top: -7px;
  right: 2px;
  font-size: 30px;
  color: #000000;
  cursor: pointer;
}
