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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background: linear-gradient(135deg, #fce4ec 0%, #e3f2fd 100%);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background: white;
  color: #f48fb1;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
  animation: fadeInUp 1s 0.6s backwards;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Floating particles */
.particle {
  position: fixed;
  width: 10px;
  height: 10px;
  background: rgba(244, 143, 177, 0.3);
  border-radius: 50%;
  pointer-events: none;
  animation: float 15s infinite;
}

.particle:nth-child(2) {
  left: 20%;
  animation-delay: 2s;
  background: rgba(144, 202, 249, 0.3);
}

.particle:nth-child(3) {
  left: 40%;
  animation-delay: 4s;
  width: 15px;
  height: 15px;
}

.particle:nth-child(4) {
  left: 60%;
  animation-delay: 6s;
  background: rgba(244, 143, 177, 0.3);
}

.particle:nth-child(5) {
  left: 80%;
  animation-delay: 8s;
  width: 12px;
  height: 12px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10%,
  90% {
    opacity: 1;
  }

  50% {
    transform: translateY(-100vh) rotate(360deg);
  }
}

/* Header */
header {
  background: linear-gradient(135deg, #f48fb1 0%, #90caf9 100%);
  color: white;
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(244, 143, 177, 0.3);
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f48fb1 0%, #90caf9 100%);
  color: white;
  padding: 180px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    no-repeat;
  background-size: cover;
  background-position: bottom;
}

.hero-profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 5px solid white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

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

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero .subtitle {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s 0.2s backwards;
  opacity: 0.95;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s 0.4s backwards;
  opacity: 0.9;
}

/* About Section */
.about {
  padding: 100px 0;
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, #f48fb1 0%, #90caf9 100%);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(244, 143, 177, 0.3);
  animation: float-slow 6s ease-in-out infinite;
  overflow: hidden;
}

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

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.section-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #f48fb1 0%, #90caf9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.8;
}

/* Skills Section */
.skills {
  padding: 100px 0;
  background: linear-gradient(135deg, #fce4ec 0%, #e3f2fd 100%);
}

.skills-grid {
  display: grid;
  /* Memaksa maksimal 2 kolom agar seimbang 2x2 */
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 900px;
  /* Membatasi lebar agar tidak terlalu melar */
  margin-left: auto;
  margin-right: auto;
}

.skill-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s;
  box-shadow: 0 10px 30px rgba(244, 143, 177, 0.2);
}

.skill-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 20px 50px rgba(244, 143, 177, 0.3);
}

.skill-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.skill-card h3 {
  color: #f48fb1;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.skill-tag {
  background: linear-gradient(135deg, #fce4ec 0%, #e3f2fd 100%);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #f48fb1;
  font-weight: 500;
}

/* Projects Section */
.projects {
  padding: 100px 0;
  background: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.project-card {
  background: linear-gradient(135deg, #fce4ec 0%, #e3f2fd 100%);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s;
  box-shadow: 0 10px 30px rgba(144, 202, 249, 0.2);
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(144, 202, 249, 0.4);
}

.project-img {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #f48fb1 0%, #90caf9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-info {
  padding: 2rem;
  background: white;
}

.project-info h3 {
  margin-bottom: 1rem;
  color: #f48fb1;
  font-size: 1.4rem;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: #90caf9;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.project-link:hover {
  color: #f48fb1;
  transform: translateX(5px);
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, #f48fb1 0%, #90caf9 100%);
  color: white;
  text-align: center;
}

.contact-title {
  background: none;
  -webkit-text-fill-color: white;
  color: white;
}

.contact-form {
  max-width: 600px;
  margin: 3rem auto 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 15px;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  background: white;
  color: #f48fb1;
  padding: 15px 50px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

footer {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: white;
  text-align: center;
  padding: 4rem 0 2rem;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #f48fb1 0%, #90caf9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-subtitle {
  color: #a0aec0;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: linear-gradient(135deg, #f48fb1 0%, #90caf9 100%);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(244, 143, 177, 0.3);
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aec0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .about-img {
    height: 300px;
  }
}

/* --- RESPONSIVE ADJUSTMENTS --- */

/* Tablet & Mobile (Layar di bawah 992px) */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .about-content {
    grid-template-columns: 1fr; /* Gambar dan teks jadi bertumpuk atas-bawah */
    text-align: center;
    gap: 2rem;
  }

  .about-img {
    height: 350px;
    max-width: 500px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

/* Mobile Friendly (Layar di bawah 768px) */
@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }

  nav {
    flex-direction: column; /* Logo di atas, menu di bawah */
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 150px 0 80px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-profile-img {
    width: 150px;
    height: 150px;
  }

  /* Skills Grid jadi 1 kolom di HP agar tidak sempit */
  .skills-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .skill-card {
    padding: 1.5rem;
  }

  /* Projects Grid menyesuaikan lebar HP */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 0 10px;
  }

  .submit-btn {
    width: 100%; /* Tombol kirim jadi lebar penuh di HP */
  }
}

/* Sangat Kecil (Layar di bawah 480px) */
@media (max-width: 480px) {
  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Menu jadi 2 baris agar muat */
    text-align: center;
    gap: 0.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}

/* Sembunyikan hamburger di desktop */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* Penyesuaian Ikon di dalam Link */
.nav-links i {
  display: none; /* Sembunyikan ikon di desktop */
  margin-right: 8px;
}

@media (max-width: 768px) {
  /* Tombol Hamburger */
  .menu-toggle {
    display: block;
    z-index: 1001; /* Supaya selalu di atas menu */
  }

  /* Container Menu */
  .nav-links {
    position: fixed; /* Mengunci menu agar tetap di posisi layar */
    top: 0;
    right: -100%; /* Tersembunyi di kanan */
    width: 100%; /* Lebar penuh layar HP */
    height: 100vh; /* Tinggi penuh layar HP */
    background: linear-gradient(135deg, #f48fb1 0%, #90caf9 100%);
    display: flex;
    flex-direction: column; /* Menu disusun berbaris ke bawah */
    justify-content: center; /* Menu berada di tengah secara vertikal */
    align-items: center; /* Menu berada di tengah secara horizontal */
    gap: 2rem; /* Jarak antar menu */
    transition: 0.4s ease-in-out;
    z-index: 1000;
    padding: 0;
    margin: 0;
  }

  /* Munculkan menu saat aktif */
  .nav-links.active {
    right: 0;
  }

  /* List Menu */
  .nav-links li {
    width: 100%;
    text-align: center;
  }

  /* Teks dan Ikon Link */
  .nav-links a {
    font-size: 1.5rem; /* Ukuran teks yang proporsional */
    color: white;
    display: flex;
    flex-direction: row; /* Ikon dan teks bersampingan */
    align-items: center;
    justify-content: center;
    gap: 15px; /* Jarak ikon ke teks */
  }

  .nav-links i {
    display: inline-block;
    font-size: 1.8rem; /* Ukuran ikon yang pas, tidak kegedean */
  }
}
