@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

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

body {
    font-family: "Poppins", sans-serif;
    background-color: #0d1117;
    color: #ffffff;
    scroll-behavior: smooth; /* Efek smooth scroll */
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* HEADER */
header {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease-in-out;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d4ff;
    transition: color 0.3s;
}

.logo:hover {
    color: #008ecc;
}

/* NAVIGASI */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s;
}

.nav-links a:hover {
  color: cyan;
  text-shadow: 0 0 10px cyan;
}


/* HAMBURGER MENU (MOBILE) */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
}

#backgroundCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Pastikan partikel di belakang semua elemen */
  pointer-events: none; /* Hindari interaksi dengan elemen */
}


/* Styling untuk Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, #001f3f, #003366); /* Gradasi biru gelap */
  padding: 20px;
  overflow: hidden;
}

/* Efek animasi background canvas */
#backgroundCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

/* Styling untuk konten di dalam hero */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  animation: fadeInUp 1.5s ease-in-out;
}

/* Animasi masuk */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Heading utama */
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Efek highlight pada nama */
.hero .highlight {
  color: #00c3ff;
  background: linear-gradient(45deg, #00c3ff, #007bff);
  background-clip: text; /* Properti standar */
  -webkit-background-clip: text; /* Untuk browser berbasis WebKit */
  -webkit-text-fill-color: transparent;
}


/* Sub-heading */
.hero h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #b0c4de;
}

/* Paragraf */
.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d0dbe8;
  margin-bottom: 20px;
}

/* Styling untuk bullet points */
.hero ul {
  text-align: left;
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.hero ul li {
  font-size: 1rem;
  margin: 8px 0;
  color: #d0dbe8;
  list-style: none;
}

.hero ul li::before {
  content: "✔️";
  margin-right: 8px;
  color: #00c3ff;
}

/* Tombol CTA */
.btn-group {
  margin-top: 20px;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  margin: 10px;
}

/* Tombol utama */
.btn-primary {
  background: linear-gradient(90deg, #00c3ff, #007bff);
  color: white;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 195, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #007bff, #0056b3);
  box-shadow: 0 6px 15px rgba(0, 195, 255, 0.5);
}

/* Tombol sekunder */
.btn-secondary {
  background: transparent;
  border: 2px solid #00c3ff;
  color: #00c3ff;
}

.btn-secondary:hover {
  background: #00c3ff;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 195, 255, 0.3);
}


.contact-links, .social-links {
  margin: 15px 0;
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center; /* Pastikan ikon sejajar vertikal */
}

.contact-links a img, .social-links a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%); /* Ikon default grayscale */
}

/* Efek hover */
.contact-links a img:hover, .social-links a img:hover {
  transform: scale(1.1);
  filter: grayscale(0%); /* Warna kembali saat hover */
  box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5); /* Tambahkan glow */
}


/* === KEAHLIAN SECTION === */
.skills {
  background: #0a0a0a;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  color: white;
}

.skills h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.skill-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-box:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 10px rgba(0, 212, 255, 0.7);
}

.skill-icon {
  font-size: 40px;
  color: #00d4ff;
  margin-bottom: 10px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .skills-container {
      grid-template-columns: 1fr;
  }
}


/* PENGALAMAN */
.experience-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 0;
  justify-content: center; /* Pastikan konten terpusat */
}

/* Kartu Pengalaman */
.experience-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 300px; /* Batasi agar tidak terlalu lebar */
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

/* Gambar di dalam kartu */
.experience-card img {
  width: 100%;
  height: 150px;
  object-fit: contain; /* Hindari gambar terpotong */
  padding: 10px; /* Beri ruang agar gambar tidak mepet */
  background: #f8f8f8; /* Latar belakang untuk gambar */
}

/* Konten dalam kartu */
.card-content {
  padding: 15px;
  text-align: center;
}

.card-content h3 {
  margin: 10px 0 5px 0;
  font-size: 1.1rem;
  color: #333;
  font-weight: bold;
}

.card-content p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* Container Sertifikasi */
.certification-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* Kartu Sertifikasi */
.certification-item {
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s;
  width: 150px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.certification-item:hover {
  transform: scale(1.05);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

.certification-item img {
  width: 80px;
  height: auto;
  object-fit: contain;
}

.certification-item p {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
  font-weight: 600;
}


/* Kartu Sertifikasi */
.certification-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 15px;
    width: 150px;
    height: 180px; /* Seragamkan tinggi */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
}

.certification-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

.certification-card img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.certification-card h3 {
    font-size: 1rem;
    color: #333;
    font-weight: bold;
}

/* Grid Detail Sertifikasi */
#certification-details {
    margin-top: 20px;
}

.certification-list {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Grid Tata Letak */
.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 10px;
}

/* Item Sertifikasi */
.certification-item {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.certification-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

.certification-item img {
    width: 80px;
    height: auto;
}

.certification-item p {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    font-weight: 600;
}


/* Styling Section Kontak */
.contact {
  background: linear-gradient(135deg, #eef2f3, #dfe9f3);
  padding: 60px 20px;
  text-align: center;
}

.contact-container {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-container h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}

.contact-container p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

/* Form Kontak */
.contact-form .input-group {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.contact-form .input-group i {
  margin-right: 10px;
  color: #007bff;
}

.contact-form input, 
.contact-form textarea {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 16px;
  outline: none;
  padding: 8px;
}

.contact-form textarea {
  resize: none;
  height: 100px;
}

/* Tombol */
.btn-submit {
  display: block;
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #0056b3;
}

/* Sosial Media */
.social-links {
  margin-top: 20px;
}

.social-icon {
  display: inline-block;
  font-size: 20px;
  margin: 0 10px;
  color: #007bff;
  transition: 0.3s;
}

.social-icon:hover {
  color: #0056b3;
}

/* Footer */
footer {
  background: #121212;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  margin-top: 40px;
}

