* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Skip link untuk aksesibilitas */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #ffeb3b;
  color: #000;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: #ffeb3b;
  text-shadow: 0 0 8px #ffeb3b;
  background: rgba(255, 235, 59, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.486), rgba(0, 0, 0, 0.199)), 
  url('Bahan section 1.jpg');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-content {
  max-width: 600px;
  margin-left: 20%;
}

.hero-title {
  font-size: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
  color: #ffeb3b;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px #ff005e, 0 0 10px #ff005e, 0 0 20px #ff005e, 0 0 40px #ff005e, 0 0 80px #ff005e;
    }
    100% {
        text-shadow: 0 0 20px #00d4ff, 0 0 20px #00d4ff, 0 0 40px #00d4ff, 0 0 80px #00d4ff, 0 0 160px #00d4ff;
    }
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.social-label {
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.social-links {
  display: flex;
  justify-content: left;
  gap: 1rem;
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

.social-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #ffeb3b;
  transform: translateY(-3px);
}

.btn-download {
  display: inline-block;
  text-decoration: none;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1s forwards;
}

.btn-download button {
  background: #fff;
  color: #000;
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  min-width: 200px;
}

.btn-download button:hover {
  background: #ffeb3b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 235, 59, 0.3);
}

/* About Section */
.about {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.profile-image {
  width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.biodata-container {
  flex: 1;
}

.biodata-container h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.biodata-list {
  list-style: none;
  padding: 0;
}

.biodata-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #333;
  display: flex;
}

.biodata-list strong {
  color: #ffeb3b;
  min-width: 150px;
  display: inline-block;
}

/* Projects Section */
.projects {
  padding: 5rem 2rem;
  background: #111;
}

.projects h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: #ffeb3b;
  box-shadow: 0 10px 30px rgba(255, 235, 59, 0.2);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.project-link {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: #ffeb3b;
}

/* Skills Section */
.skills {
  padding: 5rem 2rem;
  text-align: center;
  background: #000;
}

.skills-container {
  margin: 3rem auto;
  padding: 2rem;
  max-width: 900px;
}

.skills-container h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffeb3b;
  text-shadow: 0 0 10px rgba(255, 235, 59, 0.4);
}

.skills-indicator {
  margin-bottom: 2rem;
  font-size: 1.3rem;
  color: #ffeb3b;
}

.skills-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  width: 140px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: #ffeb3b;
  box-shadow: 0 8px 25px rgba(255, 235, 59, 0.2);
}

.skill-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
}

.skill-title {
  font-size: 1rem;
  margin-top: 0.5rem;
  color: #fff;
}

.progres {
  border-radius: 50px;
  border: 5px;
  border-color: white;
  background-color: hsl(0, 0%, 100%);
  height: 10px;
}

.progresbar {
  border-radius: 50px;
  background-color: lab(52.3% 24.44 -74.85);
  height: 10px;
}

/* Certificates Section */
.certificates {
  padding: 5rem 2rem;
  background: #111;
}

.certificates h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

.certificate-colloums {
  display: flex;
}

.certificates-grid {
  display: grid;

  gap: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.certificate-card {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-10px);
  border-color: #ffeb3b;
}

.certificate-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.certificate-card h3 {
  margin-bottom: 1rem;
}

.certificate-link {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.certificate-link:hover {
  background: #ffeb3b;
}

/* Contact Section */
.contact {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
  url('Form background.png');
  background-size: cover;
  background-position: center;
  padding: 5rem 2rem;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-container h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-subtitle {
  text-align: center;
  margin-bottom: 0.5rem;
}

.contact-indicator {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: #ffeb3b;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 2px solid #333;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffeb3b;
  background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background: #fff;
  color: #000;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  margin-top: 1rem;
}

.btn-submit:hover {
  background: #ffeb3b;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: #000;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #333;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px #ffeb3b, 0 0 10px #ffeb3b;
  }
  100% {
    text-shadow: 0 0 20px #ffeb3b, 0 0 30px #ffeb3b, 0 0 40px #ffeb3b;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .profile-image {
    width: 250px;
  }

  .biodata-list li {
    flex-direction: column;
    text-align: left;
  }

  .biodata-list strong {
    min-width: auto;
    margin-bottom: 0.5rem;
  }

  .contact-container {
    padding: 2rem 1rem;
  }

  .projects-grid,
  .certificates-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem;
  }

  .hero {
    padding: 1rem;
  }

  .about,
  .projects,
  .skills,
  .certificates,
  .contact {
    padding: 3rem 1rem;
  }

  .social-icon {
    width: 35px;
    height: 35px;
    padding: 6px;
  }
}
