html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
[data-aos] {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* General */
body {
  overflow-x: hidden;
  width: 100%;
  font-family: "Poppins", sans-serif;
  background-color: #121212;
  color: #f8f9fa;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* Navbar */
.navbar {
  transition: background-color 0.5s ease;
  background: radial-gradient(circle at right, #1f1f3a, #0d0d0d);
}

.navbar.scrolled {
  background-color: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
}

.nav-link {
  font-weight: 500;
  color: #fff !important;
  transition: color 0.3s ease;
}

.nav-link:hover,
.navbar-brand:hover {
  color: #20c997 !important;
}

.navbar-collapse {
  max-width: 100%;
  overflow-x: hidden;
}

/* ================= HERO SECTION ================= */
.hero {
  min-height: 100vh;
  background: radial-gradient(circle at right, #1f1f3a, #0d0d0d);
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

/* LEFT CONTENT */
.hero-left {
  color: #fff;
}

.hero-welcome {
  color: #20c997;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 1rem 0;
  line-height: 1.2;
}

.hero-title span {
  color: #ffffff;
  padding-right: 10px;
}

.hero-description {
  max-width: 480px;
  color: #cfcfcf;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* RIGHT IMAGE */
.hero-right {
  text-align: right;
}

.hero-right img {
  max-height: 520px;
  object-fit: cover;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

/* ================= HERO RESPONSIVE ================= */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-right {
    order: -1;
    text-align: center;
  }

  .hero-right img {
    max-height: 380px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-socials {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-socials a {
  opacity: 0;
  transform: translateY(10px);
  animation: socialFade 0.6s ease forwards;
}

.hero-socials a:nth-child(1) {
  animation-delay: 0.3s;
}
.hero-socials a:nth-child(2) {
  animation-delay: 0.45s;
}
.hero-socials a:nth-child(3) {
  animation-delay: 0.6s;
}
.hero-socials a:nth-child(4) {
  animation-delay: 0.75s;
}

@keyframes socialFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-right img {
  animation: float 6s ease-in-out infinite;
}
.hero-btn.hidden {
  opacity: 0;
  transform: translateY(10px);
}

.hero-btn.show {
  opacity: 1;
  transform: translateY(0);
  transition: 0.5s ease;
}

#typing-text {
  color: #20c997;
  padding-right: 8px;
}

/* Sections */
section {
  padding: 6rem 0;
}

.text-muted {
  color: #adb5bd !important;
}

h2.fw-bold,
h3 {
  font-weight: 700 !important;
  color: #20c997;
}

/* ABOUT SECTION */
#about {
  background: radial-gradient(circle at right, #1f1f3a, #0d0d0d);
}
#about h2 {
  color: #20c997;
}

#about p.text-muted {
  color: #9aa0a6 !important;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.about-item {
  position: relative;
  background: linear-gradient(135deg, rgba(32, 201, 151, 0.08), rgba(0, 0, 0, 0.2));
  border-radius: 16px;
  padding: 2rem 2rem 2rem 2.5rem;
  display: flex;
  gap: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s ease;
  overflow: hidden;
}

/* Accent line kiri */
.about-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 4px;
  height: calc(100% - 40px);
  background: #20c997;
  border-radius: 10px;
  opacity: 0.7;
}

/* Hover effect */
.about-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  border-color: rgba(32, 201, 151, 0.4);
}

.about-emoji {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(32, 201, 151, 0.35));
  transition: transform 0.3s ease;
}

.about-item:hover .about-emoji {
  transform: scale(1.15) rotate(-3deg);
}

.about-text h5 {
  font-weight: 700;
  color: #20c997;
  margin-bottom: 0.4rem;
}

.about-text p {
  color: #d0d0d0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-text p strong {
  color: #ffffff;
}

.about-text p em {
  color: #9d84ff;
  font-style: normal;
}

/* Portfolio Section */
#portfolio {
  background: radial-gradient(circle at right, #1f1f3a, #0d0d0d);
}

#portfolio h3 {
  color: #20c997;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 10px;
  gap: 3rem;
}
#portfolio .card {
  background-color: #161616;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s ease;
}

/* Image */
#portfolio .card-img-top {
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Card body */
#portfolio .card-body {
  text-align: center;
  padding: 1.8rem;
}

#portfolio .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(32, 201, 151, 0.45);
}

#portfolio .card:hover .card-img-top {
  transform: scale(1.05);
}

/* Title & text */
#portfolio .card-title {
  color: #20c997;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#portfolio .card-text {
  color: #d0d0d0;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

#portfolio .button_portfolio,
#certificates .button_portfolio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid #20c997;
  color: #20c997;
  background-color: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

#portfolio .button_portfolio:hover,
#certificates .button_portfolio:hover {
  background-color: #20c997;
  color: #121212;
  box-shadow: 0 0 15px rgba(32, 201, 151, 0.45);
  transform: translateY(-2px);
}

#portfolio .button_portfolio:active,
#certificates .button_portfolio:active {
  transform: scale(0.96);
}

/* SKILLS SECTION */
#skills {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background: radial-gradient(circle at right, #1f1f3a, #0d0d0d);
}

#skills h2 {
  text-align: center;
  margin-bottom: 10px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.skills-left,
.skills-right {
  padding-top: 1rem;
}

.skills-list ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skills-list li {
  list-style: none;
  background: linear-gradient(135deg, rgba(32, 201, 151, 0.25), rgba(32, 201, 151, 0.05));
  border: 1px solid rgba(32, 201, 151, 0.45);
  padding: 12px;
  border-radius: 999px; /* badge */
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  will-change: transform;
}

.skills-list i {
  margin-right: 8px;
  font-size: 1.1rem;
  color: #00ffe5;
  transition: transform 0.3s ease;
}

.skills-list li a {
  color: #e8fff7;
  text-decoration: none;
  display: block;
  cursor: pointer;
}
.skills-list li:hover {
  background-color: #20c997;
  color: #121212;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(32, 201, 151, 0.4);
}
.skills-list li:hover i {
  transform: scale(1.2) rotate(-5deg);
  color: #121212;
}

.skills-list li:hover a {
  color: #121212;
}

@media (max-width: 768px) {
  #skills {
    min-height: auto;
    padding: 4rem 0;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-form input:focus,
.contact-form textarea:focus {
  color: #fff;
}

/* Belajar Section */
.belajar .line {
  position: relative;
  overflow: hidden;
}

.belajar .line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #20c997, rgba(32, 201, 151, 0.2));
  animation: growLine 1s ease forwards;
}

@keyframes growLine {
  from {
    height: 0%;
  }
  to {
    height: 100%;
  }
}
.belajar .line div::before {
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 4px rgba(32, 201, 151, 0.25);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(32, 201, 151, 0.08);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(32, 201, 151, 0.25);
  }
}

.education-item {
  background: linear-gradient(135deg, rgba(32, 201, 151, 0.08), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(32, 201, 151, 0.25);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 1.5rem;
  transition: all 0.35s ease;
  position: relative;
}

.education-link {
  text-decoration: none;
  display: block;
}

.education-link:hover .education-item {
  transform: translateX(10px);
  background: linear-gradient(135deg, rgba(32, 201, 151, 0.18), rgba(0, 0, 0, 0.6));
  box-shadow: 0 15px 35px rgba(32, 201, 151, 0.25);
}
.education-item::after {
  content: "↗";
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 1rem;
  color: #20c997;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.education-link:hover .education-item::after {
  opacity: 1;
}

.belajar-title {
  letter-spacing: 0.3px;
  color: #20c997;
}

.belajar-info p {
  color: #20c997;
}

.belajar-tahun {
  margin-top: 6px;
  color: #20c997;
}

/* Certificates Section */
#certificates {
  background: radial-gradient(circle at right, #1f1f3a, #0d0d0d);
}

#certificates .card {
  background: linear-gradient(135deg, rgba(32, 201, 151, 0.08), rgba(0, 0, 0, 0.6));
  border: 1px solid rgba(32, 201, 151, 0.25);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.35s ease;
  will-change: transform;
}
#certificates .card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 45px rgba(32, 201, 151, 0.25);
  border-color: #20c997;
}

#certificates .card-img-top {
  height: 300px;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

#certificates .card:hover .card-img-top {
  transform: scale(1.08);
  filter: brightness(1.1);
}
#certificates .card-title {
  color: #ffffff;
  font-weight: 700;
}

#certificates .card-text {
  color: #b0b0b0;
  font-size: 0.9rem;
}

#certificates .btn {
  border-radius: 50px;
  padding: 8px 18px;
  font-weight: 600;
  border: 2px solid #20c997;
  color: #20c997;
  background: transparent;
  transition: all 0.3s ease;
}

#certificates .btn:hover {
  background-color: #20c997;
  color: #121212;
  box-shadow: 0 10px 25px rgba(32, 201, 151, 0.4);
  transform: translateY(-2px);
}

.certificate-card {
  cursor: pointer;
}

/* Contact Section */
#contact {
  background: radial-gradient(circle at right, #1f1f3a, #0d0d0d);
  color: white;
}

.contact-form input,
.contact-form textarea {
  background-color: #1a1a1a;
  border: 1px solid #444;
  color: white;
  border-radius: 8px;
  padding: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background-color: #2a2a2a;
  outline: none;
  border-color: #20c997;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background-color: #20c997;
  color: #121212;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #9d84ff;
  color: #fff;
}

.contact-item-icon {
  background-color: #1a1a1a;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-item-icon svg {
  fill: #20c997;
  width: 24px;
  height: 24px;
}

.contact-item-detail h4 {
  color: #20c997;
  font-weight: 600;
}

/* Footer */
#footer {
  background: radial-gradient(circle at right, #1f1f3a, #0d0d0d);
  padding: 5rem 1rem 3rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 1s ease,
    background 1s ease;
}
#footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(32, 201, 151, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
#footer.footer-glow::before {
  opacity: 1;
}
#footer.footer-glow {
  box-shadow: inset 0 40px 80px rgba(32, 201, 151, 0.12);
}

.footer-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-subtitle {
  color: #b0b0b0;
  margin-bottom: 2rem;
  font-size: 1rem;
}
.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #20c997, #38f9d7);
  color: #121212;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.footer-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 14px rgba(32, 201, 151, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}
.footer-cta:active {
  transform: translateY(1px);
  box-shadow:
    0 4px 10px rgba(32, 201, 151, 0.25),
    inset 0 4px 8px rgba(0, 0, 0, 0.35);
}
.footer-cta::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.footer-cta:active::after {
  transform: translate(-50%, -50%) scale(12);
  opacity: 0;
  transition:
    transform 0.45s ease-out,
    opacity 0.6s ease-out;
}

.footer-icons {
  margin: 3rem 0 1.5rem;
}

.footer-icons svg {
  fill: #20c997;
  transition:
    transform 0.3s ease,
    fill 0.3s ease;
}

.footer-icons a:hover svg {
  transform: translateY(-5px);
  fill: #9d84ff;
}

.footer-copy {
  font-size: 0.85rem;
  color: #888;
}

/* Responsive */
@media (max-width: 992px) {
  .about-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-emoji {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .jumbotron {
    padding: 6rem 1rem;
    height: auto;
    min-height: 100vh;
  }

  .jumbotron img {
    width: 150px;
    height: 150px;
  }

  .jumbotron .display-3,
  .jumbotron .arul {
    font-size: 2.5rem;
  }

  #typing-text {
    font-size: 1.5rem;
    min-height: 2.5rem;
  }

  section {
    padding: 4rem 0;
  }

  h2.fw-bold {
    font-size: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .belajar {
    gap: 1rem;
  }

  .contact-item {
    margin-bottom: 2rem;
  }

  footer {
    padding: 2rem 0;
  }
}

@media (max-width: 576px) {
  .jumbotron {
    padding: 5rem 1rem;
    text-align: center;
  }

  .jumbotron .display-3,
  .jumbotron .arul {
    font-size: 1.5rem !important;
    line-height: 1.2;
    word-wrap: break-word;
  }

  #typing-text {
    font-size: 1.5rem;
  }

  .about-item {
    padding: 1.5rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

section {
  padding: 100px 0;
}

.section-dark {
  background-color: #0d0d0d;
  color: #ffffff;
}

.section-soft {
  background-color: #121212;
  color: #ffffff;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-title span {
  color: #ff4d4d;
}

.section-subtitle {
  color: #bdbdbd;
  max-width: 600px;
}
