/* General Reset */
body, h1, h2, h3, p, ul, ol, li, form, input, textarea, button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body style */
body {
  font-family: 'Arial', sans-serif;
  background-color: #000;
  color: #fff;
}
#bg3d {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Section padding default */
section {
  padding: 2rem 1rem;
}

/* Hero section */
.hero {
  padding-top: 6rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
  }
}

/* Image styling */
.hero img {
  width: 7rem;
  height: 7rem;
}

@media (min-width: 768px) {
  .hero img {
    width: 10rem;
    height: 10rem;
  }
}

/* Text center adjustments */
.text-center {
  text-align: center;
}

/* Button styling */
.btn-primary {
  background-color: #22c55e;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #16a34a;
}

/* Responsive form input fields */
form input, form textarea {
  border: none;
  outline: none;
  font-size: 1rem;
}

/* WhatsApp floating button */
a[aria-label="Chat WhatsApp"] {
  font-size: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
}

/* Footer */
.footer {
  font-size: 0.875rem;
}

/* Additional spacing fix for smaller screens */
@media (max-width: 640px) {
  section#tentang,
  section#portofolio,
  section#kontak {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .text-center .mb-4 {
    margin-bottom: 1rem !important;
  }
}
/* Animasi fade-in */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Efek hover pada card */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 255, 100, 0.15);
}

/* Efek hover tombol */
.btn-primary,
a[aria-label="Chat WhatsApp"],
a[aria-label="Instagram"] {
  transition: transform 0.2s ease;
}

.btn-primary:hover,
a[aria-label="Chat WhatsApp"]:hover,
a[aria-label="Instagram"]:hover {
  transform: scale(1.05);
}

/* Animasi melayang (floating) pada gambar profil */
.floating {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

