/* style.css */

:root {
  --bg-color: #0d0d0d;
  --text-color: #f5f5f5;
  --card-bg: #1a1a1a;
  --primary-color: #ff66cc;
  --accent-color: #ff99cc;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #fff;
  background: linear-gradient(to right, #2e003e, #ca148a, #000);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.navbar {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 20px; 
}

.brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin-left: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 8px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  display: block;
  border-radius: 2px;
}

.toggle {
  display: none;
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.nav-menu {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-menu ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #ff66cc;
}

section.home {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 50px;
  min-height: 90vh;
  background-color: #0d0d0d;
  gap: 60px;
}

.content {
  max-width: 600px;
  text-align: left;
  margin-top: -40px;
}

.content h2 {
  font-size: 33px;
  margin-bottom: 10px;
}

.content h2 span,
.content h3 span {
  color: #ff66cc;
}

.content h3 {
  font-size: 25upx;
  margin-bottom: 20px;
}

.content p {
  font-size: 16px;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 30px;
}

.socials a {
  display: inline-block;
  margin-right: 15px;
  color: #ff66cc;
  font-size: 20px;
  transition: transform 0.3s;
}

.socials a:hover {
  transform: scale(1.2);
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border: 2px solid #ff66cc;
  color: #ff66cc;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
}

.btn:hover {
  background-color: #ff66cc;
  color: #0d0d0d;
}

.image {
  margin-top: -90px;
}

.image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid #ff66cc;
  box-shadow: 0 0 20px #ff66cc;
}

.about-template {
  padding: 90px 40px;
  background: linear-gradient(to right, #2e003e, #ca148a, #000);
  color: #fff;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.about-image img {
  width: 300px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 102, 204, 0.6);
}

.about-text {
  max-width: 600px;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: bold;
}

.about-text hr {
  width: 100px;
  height: 4px;
  background-color: #ff66cc;
  border: none;
  margin-bottom: 25px;
}

.about-text p {
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
}

.skill-interest h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.tags span {
  display: inline-block;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ff66cc;
  padding: 8px 14px;
  margin: 5px;
  border-radius: 20px;
  font-size: 14px;
  transition: 0.3s;
}

.tags span:hover {
  background-color: #ff66cc;
  color: #000;
  cursor: default;
}

.info {
  padding: 60px 50px;
  background-color: #1e1e1e;
}

.info h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #ff5252;
}

.info ul li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.contact p {
  margin-bottom: 8px;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar {
    padding: 0;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
  }

  .toggle:checked ~ .nav-menu {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
  }

  section.home {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .image {
    margin-top: 1rem;
  }

  .image img {
    margin-top: 30px;
    width: 12.4rem;
  }
}

/* Navbar efek scroll */
.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Transisi navbar */
.navbar {
  transition: all 0.3s ease-in-out;
}

/* Efek hover tambahan */
.image img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 102, 204, 0.4);
  transition: all 0.3s ease;
}
.skills {
  text-align: center;
  padding: 6rem 1rem;
  background-color: #0d0d0d;

}

.contact {
  text-align: center;
  padding: 6rem 1rem;
  background-color: #0d0d0d;

}


.about h2, .skills h2, .contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.portfolio-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}

.card {
  padding: 2rem;
  background: #fff;
  color: #333;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  border-radius: 10px;
}

.kontak-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .kontak-wrapper {
    flex-direction: row;
    justify-content: space-between;
  }
}

.kontak-form {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 600px) {
  .form-row {
    flex-direction: row;
    gap: 20px;
  }

  .form-row input {
    width: 100%;
  }
}

.kontak-form input,
.kontak-form textarea {
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: var(--border-radius);
  background-color: #2a2a2a;
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  resize: vertical;
}

.kontak-info {
  flex: 1;
  background-color: #2c2c2c;
  border-radius: var(--border-radius);
  padding: 20px;
  color: var(--accent-color);
  box-shadow: var(--shadow);
}

.kontak-info h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.kontak-info p {
  margin: 10px 0;
  font-size: 0.95rem;
}

.kontak-info i {
  margin-right: 10px;
  color: var(--primary-color);
}

.cardpink {
  background: linear-gradient(to right, #2e003e, #ca148a);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin: 0 auto 30px auto;
  max-width: 1500px;
  text-align: center;
}

.works {
  padding: 80px 20px;
  background-color: linear-gradient(to right, #2e003e, #ca148a, #000);
  text-align: center;
}

.works h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #fff;
}

.experience-item {
  display: flex;
  align-items: center;
  background-color: #131313;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 102, 204, 0.3);
  margin: 1.5rem auto;
  max-width: 1000px;
  gap: 2rem;
}

.experience-image img {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(255, 102, 204, 0.5);
}

.experience-content {
  flex: 1;
  text-align: left;
  color: #fff;
}

.experience-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #ff66cc;
}

.experience-content span {
  display: block;
  margin-bottom: 0.7rem;
  font-style: italic;
  color: #ccc;
}

.experience-content p {
  margin: 0;
  line-height: 1.6;
  color: #eee;
}

@media (max-width: 768px) {
  .experience-item {
    flex-direction: column;
    text-align: center;
  }

  .experience-content {
    text-align: center;
  }
}


.footer {
  background-color: #1a1a1a;
  color: var(--accent-color);
  text-align: center;
  padding: 30px;
  margin-top: 40px;
}
.typing {
  width: 22ch; /* Jumlah karakter yang ditampilkan */
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid black; /* Kursor kedip */
  animation: typing 3s steps(22), blink 0.75s step-end infinite;
}

@keyframes typing {
  from{
    width: 0;
  }
  to {
    width: 22ch;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.cursor {
    display: inline-block;
    animation: blink 0.7s steps(2, start) infinite;
  }

  @keyframes blink {
    to {
      visibility: hidden;
    }
  }

  .popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 13, 13, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.popup-box {
  background: #1a1a1a;
  padding: 40px;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 102, 204, 0.5);
  max-width: 400px;
  color: #fff;
}

.popup-box h2 {
  margin-bottom: 15px;
  color: #ff66cc;
}

.popup-box p {
  margin-bottom: 25px;
}
