/* Global Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
  background-color: #000000;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s ease, color 0.5s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, p {
  margin: 0;
  padding: 0;
}

/* Particles Background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle, #000000, #000000);
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
  z-index: 1000;
  position: sticky;
  top: 0;
  animation: fadeInHeader 1s ease-in-out;
}

header .logo img {
  width: 60px;
  height: auto;
  transition: transform 0.3s ease;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 18px;
  position: relative;
  transition: color 0.3s ease;
}

header nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

header nav ul li a:hover::after {
  width: 100%;
}

header .theme-toggle {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
}

header .theme-toggle:hover {
  transform: rotate(180deg);
  color: #ffffff;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 64px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
  animation: hologramEffect 3s infinite alternate;
}

.hero p {
  font-size: 20px;
  color: #ffffff;
  max-width: 600px;
  margin-top: 20px;
  opacity: 0.9;
  animation: fadeInText 2s ease-in-out;
}

.hero .cta-btn {
  margin-top: 40px;
  padding: 15px 50px;
  font-size: 18px;
  color: #000000;
  background-color: #ffffff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero .cta-btn:hover {
  transform: scale(1.1);
  background-color: #000000;
  color: #ffffff;
}

/* Projects Section */
.project-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 50px 20px;
}

.project-card {
  width: 300px;
  background-color: #000000;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.project-card h3 {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 16px;
  color: #ffffff;
  opacity: 0.8;
}

.project-card a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 14px;
  color: #000000;
  background-color: #ffffff;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.project-card a:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Social Media Section */
#social-media {
  padding: 50px 20px;
  background-color: #000000;
  color: #ffffff;
  text-align: center;
}

#social-media h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  box-shadow: #ffffff;
}
.section {
  padding: 50px 20px;
  background-color: #1a1a1a;
  color: #e0e0e0;
  text-align: center;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  background-color: #ffffff;
  border-radius: 25px;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.6);
}

.social-btn:hover {
  transform: scale(1.1);
  background-color: #000000;
  color: #ffffff;
}
/* About Section */
.about-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  background-color: #000000;
  color: #e0e0e0;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  animation: pulseGlow 2s infinite;
}

.about-box h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
}

.about-box p {
  font-size: 18px;
  max-width: 800px;
  line-height: 1.6;
  opacity: 0.9;
  text-shadow: 0 0 5px #ffffff;
}

/* Keyframes for Glow Pulse */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
  }
}
/* Footer Section */
footer {
  background-color: #121212;
  color: #e0e0e0;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(224, 224, 224, 0.1);
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

footer .footer-links a {
  color: #e0e0e0;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-links a:hover {
  color: #ffffff;
}

footer p {
  font-size: 14px;
  opacity: 0.8;
}
/* About Section */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  background-color: #1a1a1a;
  color: #e0e0e0;
  text-align: center;
}

.about h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #606060;
}

.about p {
  font-size: 18px;
  max-width: 800px;
  line-height: 1.6;
  opacity: 0.9;
}

.about-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.about-box .box {
  width: 300px;
  background-color: rgba(32, 32, 32, 0.9);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(32, 32, 32, 0.5);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-box .box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(32, 32, 32, 0.7);
}

.about-box .box h3 {
  font-size: 22px;
  color: #e0e0e0;
  margin-bottom: 10px;
}

.about-box .box p {
  font-size: 16px;
  color: #e0e0e0;
  opacity: 0.8;
}
/* Contact Section */
.contact {
  padding: 50px 20px;
  background-color: #1a1a1a;
  color: #e0e0e0;
  text-align: center;
}

.contact h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #606060;
}

.contact p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
  opacity: 0.9;
}

.contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact form input,
.contact form textarea {
  width: 100%;
  max-width: 500px;
  padding: 15px;
  border: 1px solid rgba(224, 224, 224, 0.2);
  border-radius: 10px;
  background-color: #121212;
  color: #e0e0e0;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact form input:focus,
.contact form textarea:focus {
  border-color: #606060;
}

.contact form button {
  padding: 15px 50px;
  font-size: 18px;
  color: #121212;
  background-color: #e0e0e0;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(224, 224, 224, 0.6);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact form button:hover {
  transform: scale(1.1);
  background-color: #606060;
  color: #ffffff;
}
/* Projects Section */
#projects {
  text-align: center; /* Menengahkan semua teks dalam section */
}

#projects h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #606060;
}
/* About Section */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.5));
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #e0e0e0;
  text-align: center;
  transition: background-position 0.5s ease-in;
}

.about:hover {
  animation: gradientShift 3s ease-in infinite;
}


.about h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 0 10px #ffffff, 0 0 20px #606060;
  text-align: center; /* Menengahkan teks header */
}

.about p {
  font-size: 18px;
  max-width: 800px;
  line-height: 1.6;
  opacity: 0.9;
  text-align: center; /* Menengahkan teks paragraf */
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInHeader 1s ease-in-out;
  transition: transform 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  font-size: 24px;
  border-radius: 50%;
}
.logo img {
  border-radius: 50%;
  width: 50px;
  size: 0.5px;
  height: auto;
  transition: transform 0.3s ease;
}
/* Media Queries */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 18px;
  }

.project-card {
  width: calc(100% - 40px);
  max-width: 300px;
  padding: 20px;
  border-radius: 15px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.5));
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: background-position 0.5s ease-in, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  animation: projectGradientShift 3s ease-in infinite;
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}


  .about-box .box {
    width: calc(100% - 40px);
    max-width: 300px;
  }
}
@media (max-width: 480px) {
  header {
    padding: 10px 20px;
  }

  header .logo img {
    width: 50px;
  }

  header nav ul li a {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .project-card {
    width: calc(100% - 40px);
    max-width: none;
  }

  .about-box .box {
    width: calc(100% - 40px);
    max-width: none;
  }
}
/* Animations */
@keyframes fadeInHeader {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes hologramEffect {
  0% {
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
  }
  50% {
    text-shadow: 0 0 20px #00000000, 0 0 40px #00000000;
  }
  100% {
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
  }
}
@keyframes fadeInProjects {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInAbout {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInContact {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInSocial {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInFooter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInHeader {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInProjects {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInAbout {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInContact {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInSocial {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInFooter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInHeader {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInProjects {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInAbout {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInContact {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInSocial {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInFooter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInHeader {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInProjects {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInAbout {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInContact {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInSocial {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInFooter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInHeader {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInProjects {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInAbout {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInContact {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInSocial {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInFooter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInHeader {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInProjects {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInAbout {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInContact {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInSocial {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInFooter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInHeader {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInProjects {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInAbout {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInContact {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInSocial {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInFooter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInHeader {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px; /* Lebar scrollbar */
}

::-webkit-scrollbar-track {
  background: #121212; /* Warna latar belakang track scrollbar */
}

::-webkit-scrollbar-thumb {
  background: #606060; /* Warna thumb scrollbar */
  border-radius: 10px; /* Membuat ujung thumb melengkung */
}

::-webkit-scrollbar-thumb:hover {
  background: #ffffff; /* Warna thumb saat hover */
}
/* Smooth Scroll */
html {
  scroll-behavior: smooth; /* Mengaktifkan scroll smooth */
}
/* ai-button.css */
.ai-button {
  margin-top: 30px;
  padding: 15px 40px;
  font-size: 18px;
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.ai-button:hover {
  background-color: #ffffff;
  color: #000000;
  transform: scale(1.05);
}