/* ================================
   PORTOFOLIO — LIGHT MODE NATURAL
   ================================ */

:root {
  --bg: #fafafa;          /* putih natural */
  --surface: #ffffff;
  --border: #e3e3e3;
  --text: #212529;        /* hitam natural */
  --text-muted: #6b7280;
  --accent: #c1c1c1;      /* hijau natural lembut */
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
}

/* ================= NAVBAR MENGAMBANG ================= */
/* header mengambang besar di belakang nav, dengan logo R di kiri */
.floating-header {
  position: fixed;
  top: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;

  width: min(1040px, 90vw);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0.9rem;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

/* logo R di kiri dalam header */
.floating-header .nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--text);
  color: var(--surface);
  font-family: "Arial", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
}

/* navbar kecil mengambang di depan header */
.floating-nav {
  position: fixed;
  top: 2.20rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  display: flex;
  align-items: center;
  width: fit-content;
  background:#bfcde622;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 2.5rem;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(83, 83, 83, 0.06);
}

.floating-nav .nav-link-item {
  color:#060707;
  text-decoration: none;
  font-size: 0.80rem;
  padding: 0.25rem 0.8rem;
  line-height: 1.2;
  transition: color 0.2s;
}
.floating-nav .nav-link-item:hover {
  color: var(--accent);
}

/* menu dummy: tidak bisa diklik, tembus */
.floating-nav .nav-disabled {
  color: var(--text-muted);
  opacity: 0.6;
  cursor: default;
}

.floating-nav .nav-divider {
  color: var(--border);
}

/* ================= SECTION UMUM ================= */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 5.5rem;
}

.section-project {
  padding: 5rem 0;
  color: #374151;
  scroll-margin-top: 5.5rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.25rem 0 2rem;
}

.code-comment {
  font-family: "Courier New", monospace;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

/* ================= PROFIL ================= */
#profil {
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  padding-top: 5.5rem;
  padding-bottom: 0;
}

#profil .container {
  width: 100%;
  display: flex;
  align-items: stretch;
}

.profil-wrap {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1100px;
  margin-inline: auto;
  height: 100%;
}

/* teks di kiri, ilustrasi di kanan */
.profil-text {
  flex: 1 1 420px;
  min-width: 0;
  align-self: center;
  margin-left: -1.5rem;
}

.profil-foto {
  order: 2;
}

/* --- Foto langsung, tanpa lingkaran --- */
.profil-foto {
  position: relative;
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 0;
  margin-left: 5.0rem;
  width: clamp(280px, 34vw, 430px);
  max-height: 86vh;
  aspect-ratio: 0.67;
  overflow: auto;
}

.profil-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
}

/* tampilan placeholder saat foto belum ada */
.foto-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  border: none;
}

.foto-fallback-text {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.3rem;
}

.foto-fallback-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
}

/* saat foto berhasil load: sembunyikan placeholder */
.profil-foto:not(.no-img) .foto-fallback { display: none; }
.profil-foto.no-img img { display: none; }
.profil-foto.no-img .foto-fallback { display: flex; }

.name {
  font-size: 3.1rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.cursor {
  color: var(--accent);
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.role {
  font-family: "Courier New", monospace;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.bio {
  max-width: 480px;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.btn-code {
  display: inline-block;
  text-decoration: none;
  color:#6b7280;
  background:#e3e3e3;
  border: 1px solid var(--border);
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  transition: 0.2s;
}

.btn-code:hover {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

/* ================= PROJECT ================= */
.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
  border-color: var(--accent);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.badge-status {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  padding: 0.2rem 0.6rem;
  background: #f0f0f0;
  border-radius: 99px;
  color: var(--text-muted);
  font-weight: 600;
}

.project-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tech-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #f8f9fa;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ================= TECHNICAL ================= */
.tech-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all 0.3s ease;
  border-left: 4px solid var(--border);
}

.tech-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transform: translateX(5px);
  border-left-color: var(--accent);
}

.tech-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.tech-card-header i {
  font-size: 1.5rem;
  color: var(--accent);
}

.tech-card h3 {
  font-family: "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.tech-card .tech-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.tech-num {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #dee2e6;
}

/* ================= ABOUT / EXPERIENCE ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.about-card {
  background:#374151;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.6rem 1.8rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.about-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
}

.about-intro {
  grid-column: 1 / -1;
}

.about-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-card h3 i {
  color: var(--accent);
  font-size: 1rem;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  line-height: 1.65;
}

.about-card p:last-child {
  margin-bottom: 0;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 1.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #2b3a52;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.4rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -1.4rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #182235;
  border: 2px solid #9aa8bd;
  z-index: 1;
}

.timeline-content .timeline-date {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--accent);
}

.timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.15rem 0 0.25rem;
}

.timeline-content p {
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}

/* --- Pendidikan --- */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.edu-item {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #2b3a52;
}

.edu-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.edu-year {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--accent);
}

.edu-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.15rem 0 0.2rem;
}

.edu-item p {
  font-size: 0.82rem;
  margin: 0;
}

/* ================= ABOUT POLISH ================= */
#about,
#technical {
  background: #101827;
  color: #f5f5f5;
}

#technical {
  border-bottom-color: #263247;
}

#about .section-title {
  color: #ffffff;
}

#about .code-comment,
#technical .code-comment {
  color: #9aa8bd;
}

#technical .section-title {
  color: #ffffff;
}

#technical .tech-card {
  background: #182235;
  border-color: #2b3a52;
  color: #f5f5f5;
}

#technical .tech-card:hover {
  border-left-color: #9aa8bd;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

#technical .tech-card h3 {
  color: #ffffff;
}

#technical .tech-card .tech-desc {
  color: #b7c1d0;
}

#technical .tech-card-header i {
  color: #aebbd0;
}

.about-card {
  border-radius: 12px;
  background: #182235;
  border-color: #2b3a52;
  color: #f5f5f5;
  padding: 1.3rem 1.5rem;
  transition: all 0.3s ease;
}

#about .about-card p,
#about .about-card .timeline-content p,
#about .about-card .edu-item p {
  color: #b7c1d0;
}

#about .about-intro p {
  font-size: 1rem;
  line-height: 1.7;
}

#about .about-card h3,
#about .about-card h4 {
  color: #ffffff;
}

.about-card:hover {
  border-color: #9aa8bd;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.about-card h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

/* ================= CONTACT ================= */
.contact-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card-modern {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.contact-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  border-color: #d8d8d8;
}

.card-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.icon-box-modern {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.icon-box-modern.wa-bg {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.icon-box-modern.mail-bg {
  background: linear-gradient(135deg, #FF5722 0%, #D84315 100%);
}

.icon-box-modern.ig-bg {
  background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
}

.badge-modern {
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
  padding: 0.35rem 0.7rem;
  background: #f1f3f5;
  border-radius: 999px;
  color: #6b7280;
}

.card-body-modern {
  flex: 1;
}

.card-body-modern h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  color: var(--text);
}

.subtitle-modern {
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: #0c0e898c;
  margin: 0 0 0.9rem;
  font-weight: 600;
}

.desc-modern {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.divider-modern {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0 1.1rem;
}

.footer-link-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-link-modern i {
  font-size: 1.15rem;
  transition: transform 0.25s ease, color 0.2s;
}

.footer-link-modern:hover {
  color: var(--text);
}

.footer-link-modern:hover i {
  transform: translateX(6px);
}

.wa-bg ~ .card-body-modern ~ .footer-link-modern:hover,
.wa-bg ~ .card-body-modern ~ .footer-link-modern:hover i {
  color: #25D366;
}

.mail-bg ~ .card-body-modern ~ .footer-link-modern:hover,
.mail-bg ~ .card-body-modern ~ .footer-link-modern:hover i {
  color: #FF5722;
}

.ig-bg ~ .card-body-modern ~ .footer-link-modern:hover,
.ig-bg ~ .card-body-modern ~ .footer-link-modern:hover i {
  color: #E1306C;
}

.contact-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 560px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
}

.contact-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  border-radius: 50%;
  background: rgba(193, 193, 193, 0.16);
  transform: translate(-50%, -50%);
  filter: blur(35px);
  pointer-events: none;
  transition: left 0.15s ease, top 0.15s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.contact-text {
  font-family: "Courier New", monospace;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.8rem 0;
  text-decoration: none;
  transition: color 0.2s;
}

/* WhatsApp Card */
.wa-card {
  border-left: 4px solid #25D366;
}

.wa-card:hover {
  border-left-color: #25D366;
}

.wa-card .contact-text {
  color: #25D366;
}

.wa-card .contact-text:hover {
  color: #128C7E;
}

/* Email Card */
.email-card {
  border-left: 4px solid #FF5722;
}

.email-card:hover {
  border-left-color: #FF5722;
}

.email-card .contact-text {
  color: #FF5722;
}

.email-card .contact-text:hover {
  color: #E64A19;
}

/* Instagram Card */
.instagram-card {
  border-left: 4px solid #E1306C;
}

.instagram-card:hover {
  border-left-color: #E1306C;
}

.instagram-card .contact-text {
  color: #E1306C;
}

.instagram-card .contact-text:hover {
  color: #C13584;
}

.contact-text:hover {
  color: var(--text);
  transform: translateX(6px);
}

.contact-text i {
  transition: transform 0.25s ease, color 0.25s ease;
}

.contact-text:hover i {
  color: var(--text);
  transform: scale(1.25) rotate(-8deg);
}

.contact-clicked i {
  animation: contact-pop 0.45s ease;
}

@keyframes contact-pop {
  50% { transform: scale(1.5); }
}

.contact-text:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-text:first-child {
  padding-top: 0;
}

.contact-text i {
  color: var(--accent);
  font-size: 1.1rem;
}

.profile-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-info-list li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: #b7c1d0;
}

.profile-info-list li strong {
  color: #ffffff;
  margin-right: 0.5rem;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #000d20;               /* gelap natural */
  color: #e5e7eb;
  padding: 3rem 0 1.5rem;
  text-align: center;                /* tengah di layar kecil */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;                  /* rata kiri di layar besar */
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.6rem;
}

.footer-title .nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface);
  color: #000d20;
  font-family: "Arial", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  flex: 0 0 auto;
}

.footer-desc {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.footer-list li { margin-bottom: 0.55rem; }

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-contact i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid #374151;
  margin: 2rem 0 1.2rem;
}

.footer-copyright {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
}

/* ================= RESPONSIF ================= */
@media (max-width: 900px) {
  .project-list,
  .tech-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .profil-wrap {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .profil-foto {
    order: -1;
    align-self: center;
    margin-top: 0;
    width: clamp(240px, 55vw, 340px);
    aspect-ratio: 0.67;
  }
  #profil {
    padding-top: 5.5rem;
    padding-bottom: 2rem;
  }
  .bio { margin-left: auto; margin-right: auto; }
}

@media (max-width: 576px) {
  .floating-header {
    top: 0.8rem;
    height: 48px;
    border-radius: 12px;
  }
  .floating-header .nav-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }
  .floating-nav {
    top: 1.25rem;
    padding: 0.3rem 0.5rem;
    gap: 0.05rem;
  }
  .floating-nav .nav-link-item {
    font-size: 0.68rem;
    padding: 0.2rem 0.4rem;
  }
  .nav-divider { display: none; }
  .name { font-size: 1.8rem; }
  .section { padding: 3.5rem 0; }
  .site-footer { padding: 2.2rem 0 1.2rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    text-align: center;
  }
  .footer-contact i { margin-right: 0.35rem; }
  #profil {
    min-height: 100dvh;
    padding-top: 4.2rem;
    padding-bottom: 0.5rem;
  }
  .profil-foto {
    width: min(62vw, 280px);
    aspect-ratio: 0.67;
  }
  .project-list,
  .tech-list {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}
