html {
  scroll-behavior: smooth;
}

/* Murni Glassmorphism Navbar Desktop (Tanpa shadow warna/animasi) */
@media (min-width: 768px) {
  .navbar-glass {
    position: fixed !important;
    top: 1rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 1280px !important;
    right: auto !important;
    bottom: auto !important;
    border-radius: 9999px !important;
    
    /* Efek Kaca Transparan Mode Terang */
    background-color: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08) !important;
  }
  
  /* Efek Kaca Transparan Mode Gelap */
  html.dark .navbar-glass {
    background-color: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4) !important;
  }
}

/* Fix Spacing Spacing Badge Tech Stack */
#skills .flex-wrap span {
  margin-right: 0.5rem !important;
  margin-bottom: 0.65rem !important;
  display: inline-block !important;
}






@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url(../webfonts/inter/inter-latin-400-normal.woff2) format("woff2"),
    url(../webfonts/inter/inter-latin-400-normal.woff) format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src:
    url(../webfonts/inter/inter-latin-500-normal.woff2) format("woff2"),
    url(../webfonts/inter/inter-latin-500-normal.woff) format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    url(../webfonts/inter/inter-latin-600-normal.woff2) format("woff2"),
    url(../webfonts/inter/inter-latin-600-normal.woff) format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url(../webfonts/inter/inter-latin-700-normal.woff2) format("woff2"),
    url(../webfonts/inter/inter-latin-700-normal.woff) format("woff");
}

:root {
  color-scheme: light;
}

html.dark {
  color-scheme: dark;
}

.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
i[class*="fa-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-width: 0;
  max-width: 100vw;
  font-family: "Inter", sans-serif;
}

.section-bg {
  background-color: #ffffff;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(248, 250, 252, 0.4) 50%,
    rgba(255, 255, 255, 1) 100%
  );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

html.dark .section-bg {
  background-color: #020617;
  background-image: linear-gradient(135deg, rgba(2, 6, 23, 1) 0%, rgba(15, 23, 42, 1) 50%, rgba(17, 24, 39, 1) 100%);
  background-position: center;
}

#certificate-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  inset: 0;
  position: fixed;
  z-index: 50;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

#certificate-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

#certificate-modal .modal-panel {
  width: min(100%, 62rem);
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 36px 100px rgba(15, 23, 42, 0.16);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

#certificate-modal .modal-panel > div:first-child {
  padding: 1.5rem 2rem 1.25rem;
}

#certificate-modal #modal-title {
  margin-top: 0.2rem;
  line-height: 1.1;
}

#certificate-modal.visible .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#certificate-modal .modal-body {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  align-items: start;
  max-height: calc(100vh - 18rem);
  overflow: auto;
  padding: 1.75rem;
}

#certificate-modal .modal-body img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: 24px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

#certificate-modal .modal-body #modal-label {
  color: #475569;
  background-color: #f8fafc;
}

.dark #certificate-modal .modal-body #modal-label {
  color: #cbd5e1;
  background-color: #1f2937;
}

#certificate-modal .modal-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 9999px;
  background: #4285f4;
  color: white;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 1.25rem;
  transition:
    background 200ms ease,
    transform 200ms ease;
}

#certificate-modal .modal-download:hover {
  background: #3367d6;
  transform: translateY(-1px);
}

#certificate-modal .modal-download.hidden {
  display: none;
}

#certificate-modal .modal-close-icon {
  min-width: 2.5rem;
}

@media (max-width: 768px) {
  #certificate-modal .modal-body {
    grid-template-columns: 1fr;
  }

  #certificate-modal .modal-footer {
    justify-content: center;
    text-align: center;
  }
}

body {
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.dark body {
  background-color: #020617;
  color: #f8fafc;
}

.dark .bg-slate-50,
.dark .bg-slate-50\/80,
.dark .bg-slate-50\/90,
.dark .bg-slate-50\/95 {
  background-color: #0f172a !important;
}

.dark .bg-white,
.dark .bg-white\/80,
.dark .bg-white\/90,
.dark .bg-white\/95 {
  background-color: #111827 !important;
  color: #f8fafc !important;
}

.dark .border-slate-200,
.dark .border-slate-200\/80 {
  border-color: rgba(148, 163, 184, 0.24) !important;
}

.dark .text-\[\#202124\] {
  color: #f8fafc !important;
}

.dark .text-\[\#5f6368\] {
  color: #cbd5e1 !important;
}

.dark .shadow-sm,
.dark .shadow-md,
.dark .shadow-lg,
.dark .shadow-xl {
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.35) !important;
}

.dark .bg-gradient-to-br {
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95)) !important;
}

.dark #projects,
.dark #services,
.dark #contact {
  background: linear-gradient(180deg, #020617 0%, #111827 100%) !important;
  color: #f8fafc;
}

.dark #projects .bg-white,
.dark #projects .bg-slate-50,
.dark #projects .bg-slate-50\/30,
.dark #projects .bg-slate-50\/80,
.dark #projects .bg-slate-50\/90,
.dark #projects .bg-white\/80,
.dark #projects .bg-white\/90,
.dark #projects .bg-white\/95,
.dark #services .bg-white,
.dark #services .bg-slate-50,
.dark #services .bg-slate-50\/30,
.dark #services .bg-slate-50\/80,
.dark #services .bg-slate-50\/90,
.dark #services .bg-white\/80,
.dark #services .bg-white\/90,
.dark #services .bg-white\/95,
.dark #contact .bg-white,
.dark #contact .bg-slate-50,
.dark #contact .bg-slate-50\/30,
.dark #contact .bg-slate-50\/80,
.dark #contact .bg-slate-50\/90,
.dark #contact .bg-white\/80,
.dark #contact .bg-white\/90,
.dark #contact .bg-white\/95 {
  background-color: #111827 !important;
  color: #f8fafc !important;
}

.dark #projects .border-slate-200,
.dark #services .border-slate-200,
.dark #contact .border-slate-200 {
  border-color: rgba(148, 163, 184, 0.24) !important;
}

.dark #projects .text-\[\#202124\],
.dark #services .text-\[\#202124\],
.dark #contact .text-\[\#202124\],
.dark section .text-\[\#202124\] {
  color: #f8fafc !important;
}

.dark #projects .text-\[\#5f6368\],
.dark #services .text-\[\#5f6368\],
.dark #contact .text-\[\#5f6368\],
.dark section .text-\[\#5f6368\] {
  color: #cbd5e1 !important;
}

.dark #contact input,
.dark #contact textarea {
  background-color: #111827 !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
}

.dark section.bg-gradient-to-b,
.dark section.bg-gradient-to-br,
.dark section.bg-gradient-to-r,
.dark section.bg-gradient-to-l {
  background-color: #020617 !important;
  background-image: none !important;
}

.dark section .bg-white,
.dark section .bg-slate-50,
.dark section .bg-slate-50\/30,
.dark section .bg-slate-50\/80,
.dark section .bg-slate-50\/90,
.dark section .bg-white\/80,
.dark section .bg-white\/90,
.dark section .bg-white\/95 {
  background-color: #111827 !important;
  color: #f8fafc !important;
}

.dark section .bg-slate-100 {
  background-color: #1f2937 !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

@keyframes gradient-x {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.animate-gradient-x {
  background-size: 200% 200%;
  animation: gradient-x 4s ease infinite;
}

/* Blinking cursor effect */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

#cursor {
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

.hero-typing-cursor {
  display: inline-block;
  margin-left: 0.15rem;
  color: #4285f4;
  animation: blink 1s step-end infinite;
  font-weight: 300;
  vertical-align: baseline;
}

/* Class to hide the cursor */
.cursor-hidden {
  opacity: 0 !important;
}

/* Fade-in animation for skills */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.about-section-shell {
  position: relative;
  overflow: hidden;
}

.about-profile-card {
  position: relative;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.about-profile-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(66, 133, 244, 0.12);
}

.profile-image-shell {
  animation: floatSoft 3.2s ease-in-out infinite;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.profile-image-shell:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 24px rgba(66, 133, 244, 0.16);
}

.about-quote-card {
  animation: floatSoft 3.6s ease-in-out infinite;
}

.about-strength-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.about-typing-cursor {
  display: inline-block;
  margin-left: 2px;
  color: #4285f4;
  animation: blink 0.8s step-end infinite;
}

.about-strength-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(66, 133, 244, 0.12);
  border-color: rgba(66, 133, 244, 0.24);
}

.about-chip {
  animation: fadeInUp 0.7s ease-out both;
}

.about-chip:nth-child(2) {
  animation-delay: 0.1s;
}

.about-chip:nth-child(3) {
  animation-delay: 0.2s;
}

/* Form floating label behavior */
.relative.group label {
  pointer-events: none;
  left: 1rem;
  top: 1.05rem;
  transform-origin: left top;
  transition: all 0.2s ease;
  background: #ffffff;
  padding: 0 0.3rem;
}

.relative.group input.peer,
.relative.group textarea.peer {
  padding-top: 1.35rem;
}

.relative.group input.peer:focus + label,
.relative.group input.peer:not(:placeholder-shown) + label,
.relative.group textarea.peer:focus + label,
.relative.group textarea.peer:not(:placeholder-shown) + label {
  top: 0.3rem;
  font-size: 0.72rem;
  color: #4285f4;
  transform: translateY(-0.05rem);
}

.dark .relative.group label {
  background: #111827;
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-paragraph {
    font-size: 0.95rem;
  }

  .cta-button {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-size: 0.95rem;
  }

  nav .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
