@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
  font-family: 'Orbitron', sans-serif;
  background-color: #0a0a0a;
  color: #ff4444;
  margin-top: 100px;
}

.topnav { 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #1a0a0a, #110707);
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.8);
  z-index: 1000;
  padding: 1rem 0;
  font-family: 'Orbitron', sans-serif;
  user-select: none;
}

/* Container supaya nav tetap max lebar & center */
.topnav ul {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2.5rem;
  padding: 0;
}

/* Link */
.topnav a {
  color: #ff4444;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  font-size: 1.15rem;
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}

/* Underline animasi */
.topnav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: #ff4444;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.topnav a:hover::after,
.topnav a.active::after {
  width: 100%;
}

/* Hover warna text */
.topnav a:hover,
.topnav a.active {
  color: #ff8888;
}

/* Responsive hamburger */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #ff4444;
  cursor: pointer;
  z-index: 1100;
  user-select: none;
  transition: color 0.3s ease;
}

.menu-toggle:hover {
  color: #cc3636;
}

/* Mobile nav */
@media (max-width: 768px) {
  .topnav ul {
    flex-direction: column;
    background: linear-gradient(135deg, #1a0a0a, #110707);
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 1rem 0;
    display: none;
    gap: 1.5rem;
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
    border-radius: 0 0 12px 12px;
    z-index: 1050;
  }
  .topnav ul.show {
    display: flex;
  }
  .topnav a {
    font-size: 1.3rem;
    padding: 0.6rem 0;
    text-align: center;
  }
  .menu-toggle {
    display: block;
  }
}


header {
  text-align: center;
  background: linear-gradient(to right, #1a0000, #330000);
  padding: 3rem 1rem;
  box-shadow: 0 0 20px #ff0000 inset;
}

.profile-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid #ff4444;
  box-shadow: 0 0 10px #ff0000;
  margin-bottom: 1rem;
}

section {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
}




.typewriter {
  overflow: hidden;
  border-right: 2px solid #ff4444;
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite;
  max-width: max-content;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  0%, 100% { border-color: transparent }
  50% { border-color: #ff4444 }
}
.led-blink {
  color: #ff4444;
  text-shadow: 0 0 5px #ff4444, 0 0 10px #ff4444;
  animation: blink-led 1s infinite alternate;
}

@keyframes blink-led {
  from {
    opacity: 0.4;
    text-shadow: 0 0 2px #ff4444;
  }
  to {
    opacity: 1;
    text-shadow: 0 0 10px #ff4444, 0 0 20px #ff4444;
  }
}
.about-section {
  padding: 4rem clamp(1rem, 5vw, 200px);
  background: radial-gradient(circle at top, #1a0000 0%, #000 100%);
  border-top: 2px solid #ff0000;
  border-bottom: 2px solid #ff0000;
  border-right: 2px solid #ff0000;
  border-left: 2px solid #ff0000;
  margin-top: 3rem;
}


.section-title {
  text-align: center;
  font-size: 2rem;
  color: #ff4444;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px #ff0000;
}


.about-card {
  background: linear-gradient(145deg, #111, #1a1a1a);
  padding: 2rem 2rem;
  border: 2px solid #ff0000;
  border-radius: 12px;
  box-shadow:
    0 0 10px rgba(255, 0, 0, 0.4),
    0 0 20px rgba(255, 0, 0, 0.3) inset;
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.7;

  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.about-card:hover {
  box-shadow:
    0 0 20px rgba(255, 0, 0, 0.6),
    0 0 30px rgba(255, 0, 0, 0.3) inset;
  transition: 0.3s ease;
}


.highlight {
  color: #ff4444;
  font-weight: bold;
  text-shadow: 0 0 5px #ff0000;
}

/* Container section proyek */
/* .projects-section {
  padding: 4rem clamp(1rem, 5vw, 200px);
  background: radial-gradient(circle at top, #1a0000 0%, #000 100%);
  border: 2px solid #ff0000;
  margin-top: 3rem;
  border-radius: 12px; /* opsional biar agak lembut sudutnya */


  #projects {
    max-width: 960px;
    margin: 3rem auto 4rem auto;
    padding: 0 1.5rem;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
    font-family: 'Orbitron', sans-serif;
  }
  
  /* Background glow ringan di belakang judul */

  
  /* Judul besar, tebal, bertekstur */
  #projects > h2 {
    font-size: 3.6rem;
    margin-bottom: 3rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ff4444;
    text-transform: uppercase;
    text-shadow:
      0 0 8px #ff4444,
      0 0 20px #ff2222,
      0 0 30px #ff0000;
    animation: pulseRed 2.8s ease-in-out infinite;
    user-select: none;
  }
  
  /* Animasi glow pulse untuk judul */
  @keyframes pulseRed {
    0%, 100% {
      text-shadow:
        0 0 6px #ff4444,
        0 0 18px #ff2222,
        0 0 28px #ff0000;
    }
    50% {
      text-shadow:
        0 0 12px #ff6666,
        0 0 30px #ff4444,
        0 0 40px #ff2222;
    }
  }
  

/* Grid 2 kolom untuk card */
.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Card */
.project-card {
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  padding: 1rem 1.6rem;
  border-left: 5px solid #ff4444;
  box-shadow:
    0 6px 15px rgba(255, 68, 68, 0.3),
    inset 0 -3px 5px rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  color: #e1e1e1;
  font-family: 'Orbitron', sans-serif;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 160%;
  height: 180%;
  background: radial-gradient(circle at center, rgba(255, 68, 68, 0.1), transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
  border-radius: 16px;
  z-index: 0;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 14px 30px rgba(255, 68, 68, 0.5),
    inset 0 -3px 8px rgba(0, 0, 0, 0.7);
}

.project-card:hover::before {
  opacity: 1;
}


.project-card h3 {
  margin-bottom: 0.45rem;
  color: #ff4444;
  font-weight: 700;
  font-size: 1.4rem; /* sedikit diperkecil */
  letter-spacing: 0.9px;
}

.project-card img.project-cover {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 2px solid #ff4444;
  box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
  filter: grayscale(10%) contrast(105%);
}

.project-card img.project-cover:hover {
  transform: scale(1.05) rotateZ(0.6deg);
  box-shadow: 0 6px 18px rgba(255, 68, 68, 0.45);
  border-color: #ff6666;
  filter: grayscale(0%) contrast(110%);
}


.project-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 1.1rem;
}

.project-card a {
  display: inline-block;
  background-color: #ff4444;
  color: white;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 24px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  user-select: text;
}

.project-card a:hover {
  background-color: #cc3636;
}

/* Responsive */
@media (max-width: 768px) {
  .project-list {
    grid-template-columns: 1fr;
  }

  .project-card {
    max-width: 100%;
  }
}


/* Responsive */

/* Tablet ke bawah: ubah jadi 1 kolom */
@media (max-width: 768px) {
  .project-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  #projects > h2 {
    font-size: 2.4rem;
  }

  .project-card {
    max-width: 100%;
  }
}

/* HP kecil */
@media (max-width: 480px) {
  #projects > h2 {
    font-size: 2rem;
  }

  .project-card h3 {
    font-size: 1.3rem;
  }

  .project-card img.project-cover {
    max-height: 120px;
  }

  .project-card a {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}


.skills-section {
  padding: 4rem clamp(1rem, 5vw, 10vw);
  background: linear-gradient(to bottom, #0a0a0a, #1a0000);
  border-top: 2px solid #ff0000;
  border-bottom: 2px solid #ff0000;
  border-right: 2px solid #ff0000;
  border-left: 2px solid #ff0000;
  margin-top: 3rem;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.skill-card {
  background-color: #111;
  border: 2px solid #ff0000;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  color: #ddd;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.skill-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 5px #ff4444);
}

.skill-card h3 {
  margin-bottom: 0.5rem;
  color: #ff4444;
  font-size: 1.2rem;
}

.contact-section {
  padding: 4rem clamp(1rem, 5vw, 10vw);
  background: linear-gradient(to bottom, #0a0a0a, #1a0000);
  border-top: 2px solid #ff0000;
  border-bottom: 2px solid #ff0000;
  border-right: 2px solid #ff0000;
  border-left: 2px solid #ff0000;
  margin-top: 3rem;
}


.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ff4444;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  padding: 2rem clamp(1rem, 5vw, 10vw);
}


.contact-item {
  background: linear-gradient(145deg, #141414, #0a0a0a);
  border: 2px solid #ff0000;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #eee;
  box-shadow:
    0 0 12px rgba(255, 0, 0, 0.4),
    inset 0 0 12px rgba(255, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.1) 0%, transparent 60%);
  z-index: 0;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.contact-item:hover::before {
  opacity: 1;
}

.contact-item:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 20px rgba(255, 0, 0, 0.6),
    inset 0 0 15px rgba(255, 0, 0, 0.25);
  border-color: #ff4444;
}

.contact-item i {
  font-size: 2.4rem;
  color: #ff4444;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 10px #ff4444;
  z-index: 1;
  position: relative;
}

.contact-item h4 {
  margin: 0.5rem 0;
  font-size: 1.3rem;
  color: #ff6666;
  text-shadow: 0 0 8px #ff0000;
  z-index: 1;
  position: relative;
}

.contact-item a {
  color: #ff5555;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  z-index: 1;
  position: relative;
}

.contact-item a:hover {
  color: #ff9999;
  text-shadow: 0 0 10px #ff4444;
}


/* Sosial Media Slider */




@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr; /* Jadi 1 kolom di layar kecil */
  }
}

.certificate-section {
  padding: 4rem clamp(1rem, 5vw, 10vw);
  background: linear-gradient(to bottom, #0a0a0a, #1a0000);
  border: 2px solid #ff0000;
  margin-top: 3rem;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 700px) {
  .certificate-grid {
    grid-template-columns: 1fr;
  }
}

.certificate-card {
  background-color: #111;
  border: 2px solid #ff0000;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  color: #ddd;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.certificate-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.certificate-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #ff4444;
  filter: drop-shadow(0 0 5px #ff4444);
}

.certificate-card h3 {
  margin-bottom: 0.5rem;
  color: #ff4444;
  font-size: 1.2rem;
}

.certificate-card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.certificate-card a {
  display: inline-block;
  color: #fff;
  background-color: #ff0000;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.certificate-card a:hover {
  background-color: #cc0000;
}

.site-footer {
  margin-top: 4rem; /* Jarak antara kontak dan footer */
  background-color: #0a0a0a;
  color: #ddd;
  border-top: 2px solid #ff0000;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 -5px 15px rgba(255, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .site-footer {
    margin-top: 2rem; /* Responsive spacing */
  }
}


.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-content p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: #ff4444;
  font-size: 1.4rem;
  transition: color 0.3s, transform 0.3s;
}

.footer-links a:hover {
  color: #ffffff;
  transform: scale(1.2);
}


