html{
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
body {
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
}
section {
  padding: 100px 60px; 
}
/* =============================== NAVBAR =============================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: transparent;
}

/* Logo */
.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;color: #7ab7ff;          
  text-decoration: none;
}

.logo span {
  color: #ffffff;
}

/* Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s ease;
}

/* Hover underline */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #7ab7ff;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #7ab7ff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Social Icons */
.socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.socials a {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.socials a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #7ab7ff;
  transform: scale(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.socials a:hover::before {
  transform: scale(1);
  box-shadow: 0 0 12px #7ab7ff;
}

.socials img {
  width: 22px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
  z-index: 1;
}

.socials a:hover img {
  transform: scale(1.15);
}

/* ============================ RESPONSIVE ============================= */
@media (max-width: 900px) {
  .navbar {
    padding: 16px 24px;
  }

  .nav-links {
    display: none; /* disembunyikan untuk mobile clean */
  }
}


/* ================================================ HERO SECTION ============================================== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px;
  gap: 60px;
  flex-wrap: wrap;
}
.hero-text {
  max-width: 600px;
}
.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  margin: 15px 0;
  line-height: 1.2;
}
.white-text {
  color: #ffffff;
}
.blue-text {
  color: #7ab7ff; 
}
#role-top,
#role-bottom {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid currentColor; 
  padding-right: 4px; 
  animation: blinkCursor 0.7s steps(1) infinite;
  line-height: 1.2em; 
}
@keyframes blinkCursor {
  50% {
    border-color: transparent;
  }
}
.hero-text p {
  font-size: 18px;
  opacity: 0.8;
}
.btn-contact {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  border: 2px solid #7ab7ff;
  color: #7ab7ff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: 0.3s;
}
.btn-contact:hover {
  background: #7ab7ff;
  color: #121212;
}
.btn-certificates {
  display: inline-block;
  margin-top: 15px;
  margin-left: 5px;
  padding: 10px 18px;
  border: 2px solid #ffffff;  /* putih */
  color: #ffffff; /* teks putih*/
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: 0.3s;
}
.btn-certificates:hover {
  background: #ffffff;
  color: #121212;
}
.hero-img img {
  width: 250px;
  height: auto;
  border-radius: 20px;
}
.hero-img:hover{
    transform: scale(1.05);
    transition: 0.3s;
    cursor: pointer;
}
@media (max-width: 900px) {
  .hero {
    flex-direction: column; 
    align-items: center;
    text-align: center;
    gap: 30px; 
    padding: 60px 20px;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-img img {
    width: 200px; 
  }
}
/* ================================= HERO STATS ================================= */
.stats {
  display: flex;
  justify-content: center;  /* center secara horizontal */
  align-items: center;      /* center secara vertikal */
  gap: 50px;                /* jarak antar stat */
  margin-top: 40px;         /* jarak dari hero content */
  flex-wrap: wrap;           /* responsif, jika layar kecil */
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  text-align: center;
  padding: 20px 30px;
  border: 2px solid #7ab7ff;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.stat:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.5);
}

.stat h3 {
  margin: 0;
  font-size: 20px; 
  font-weight: 500;
  color: #ffffff;
}

.stat p {
  margin: 5px 0 0 0;
  font-size: 16px;
  color: #aaaaaa;
  font-weight: 500;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
  .stats {
    gap: 30px;
  }
  .stat h3 {
    font-size: 18px;
  }
  .stat p {
    font-size: 16px;
  }
}

/* ================================================ ABOUT ============================================== */
.about {
  padding: 60px;
  text-align: center;
  background: #121212;
  color: #fff;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 25px;
  color: #ccc;
  text-align: justify;
  transition: transform 0.3s ease, color 0.3s ease;
}

.about p:hover {
  transform: translateX(5px);
  color: #fff; /* jadi lebih terang saat hover */
}

.about strong {
  color: #7ab7ff;
  font-weight: 600;
}
.about p {
  max-width: 700px;
  margin: auto;
  opacity: 0.9;
}
.skills {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.skill-box {
  text-align: center;
  margin: 0 20px;
}
.skill-box h3 {
  margin-bottom: 20px;
  font-size: 20px;   
  font-weight: 700;  
  color: #ffffff;
}
.skill-box .icons {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.skill-box .icons a img {
  width: 45px;
  transition: transform 0.3s ease;
  height: auto;
}
.skill-box .icons a:hover img {
  transform: scale(1.25);
}

@media (max-width: 900px) {
  .skills {
    flex-direction: column;
    gap: 30px;
  }
}
.about h2, .project h2, .contact h2 {
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}
.about h2::before, .project h2::before, .contact h2::before,
.about h2::after,  .project h2::after,  .contact h2::after {
  content: "";
  flex: 1;
  height: 2px;
  background-color: #7ab7ff;
}
@media (max-width: 600px) {
  .about, .project, .contact {
    padding: 40px 20px;
  }
}

/* ================================================ PROJECT ============================================== */
.project {
  padding: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.project p {
  max-width: 650px;
  margin: 0 auto 30px;
  opacity: 0.9;
  font-size: 20px;
  font-weight: 500;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.project-card {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 24px;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}
.project-card:hover {
  transform: translateY(-15px);
}
.project-card:hover img{
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
}
.project-card img {
  width: 100%;
  max-width: 400px;
  margin-bottom: 15px;
  background: #121212;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer; 
  transition: transform 0.4s;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.project-card .project-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.project-card .project-info .project-stack {
  margin-top: 0.3 rem;
  font-size: 0.9rem;
  color: #7DD3FC;
  font-size: 18px;
  margin-bottom: 8px;
  cursor: pointer;
}

.project-card .project-info .project-desc {
  margin-top: 1rem;
  line-height: 1.5;
  max-width: 90%;
  color:rgba(255,255,255,0.7) ;
  font-size: 16px;
  cursor:default;
}

.project-info h3 a {
  color: #e0e0e0;      
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;  
}

/* ================================================ CONTACT ME ============================================== */
.contact {
  padding: 80px 60px;
  text-align: center;
}
.contact h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
}
.contact p {
  max-width: 700px;
  margin: 0 auto 56px;
  opacity: 0.9;
}
.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 2px solid #e0e0e0;
  padding: 10px;
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: border 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom: 2px solid #7ab7ff;
}
.contact-form button {
  margin-top: 24px;
  padding: 12px;
  background: transparent;
  border: 2px solid #7ab7ff;
  color: #7ab7ff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button:hover {
  background: #7ab7ff;
  color: #121212;
}

/* ================================================ FOOTER ============================================== */
footer {
  background: #121212;
  padding: 40px 60px 24px;
  color: #ffffff;
}

/* Main footer layout */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.footer-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #7ab7ff;
}

.footer-logo span {
  color: #ffffff;
}

/* Social icons */
.footer-socials {
  display: flex;
  align-items: center;
}

.footer-socials a {
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-socials img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

/* Hover effect */
.footer-socials a:hover {
  transform: translateY(-3px) scale(1.1);
  opacity: 0.8;
}

/* Copyright */
.footer-copy {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* ================ RESPONSIVE ================ */
@media (max-width: 768px) {
  footer {
    padding: 32px 24px 20px;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-socials a {
    margin-left: 16px;
    margin-right: 16px;
  }
}















