/* ==================================================
   Ais Diyanah — Portofolio
   Tema: Merah muda modern | Ratio: 60:30:10
   60% Pink (f43f6e) | 30% Pastel (fce7f3) | 10% Netral (1e293b)
   ================================================== */

/* ---- Reset & Tipografi ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

/* ---- Layout Container ---- */
.container {
  width: min(90%, 1100px);
  margin-inline: auto;
}

/* ==================================================
   1. NAVBAR
   ================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #fbcfe8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f43f6e;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}

.logo-footer .logo-text {
  color: #1e293b;
}

/* Nav menu (desktop) */
.nav-menu {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #f43f6e;
  outline: none;
}

.nav-link.active {
  color: #f43f6e;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f43f6e;
  border-radius: 2px;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: #1e293b;
  transition: all 0.25s ease;
}

/* ==================================================
   2. HERO
   ================================================== */
.hero {
  padding-block: 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 560px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f43f6e;
}

.hero-name {
  font-size: clamp(1.6rem, 3.5vw + 0.5rem, 2.2rem);
  font-weight: 800;
  color: #1e293b;
}

.hero-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #be185d;
}

.hero-loc {
  font-size: 0.95rem;
  color: #64748a;
}

.hero-desc {
  font-size: 1rem;
  color: #334155;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.4rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #f43f6e;
  color: #ffffff;
  border: 2px solid #f43f6e;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #db285f;
  border-color: #db285f;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(244, 63, 110, 0.35);
}

.btn-ghost {
  background: transparent;
  color: #1e293b;
  border: 2px solid #fbcfe8;
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: #fce7f3;
  border-color: #fbcfe8;
}

.btn-block {
  width: 100%;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #be185d;
}

.stat-label {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Hero media */
.hero-media {
  justify-self: end;
}

.photo-frame {
  position: relative;
  margin: 0 auto;
  width: fit-content;
}

.hero-photo {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid #ffffff;
  box-shadow: 0 12px 30px rgba(244, 63, 110, 0.15);
}

.photo-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.photo-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f43f6e;
}

/* ==================================================
   3. SECTION HEAD
   ================================================== */
.section {
  padding-block: 5rem;
}

.section-alt {
  background: linear-gradient(180deg, #ffffff 0%, #fef3f6 100%);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
  gap: 0.6rem;
}

.section-head-light .section-title {
  color: #1e293b;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f43f6e;
}

.section-title {
  font-size: clamp(1.4rem, 2.4vw + 0.5rem, 1.8rem);
  font-weight: 700;
  color: #be185d;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: #fbcfe8;
}

.section-head-light .section-title::after {
  background: #fbcfe8;
}

.section-sub {
  font-size: 0.95rem;
  color: #64748a;
}

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

.about-card,
.skills,
.edu-card,
.timeline-body {
  background: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.about-card h3,
.skills h3,
.edu-card h3,
.cert-card h3,
.contact-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #be185d;
  margin-bottom: 0.85rem;
}

.about-card p {
  margin-bottom: 1rem;
  color: #334155;
}

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

.skill-list,
.timeline-list,
.project-tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-list li::before {
  content: "▹";
  color: #f43f6e;
  font-weight: bold;
  display: inline-block;
  margin-right: 8px;
  font-size: 0.8rem;
}

/* ==================================================
   5. TIMELINE
   ================================================== */
.timeline {
  position: relative;
  padding-inline-start: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 2px;
  background: #fbcfe8;
}

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

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

.timeline-dot {
  position: absolute;
  top: 0;
  left: -32px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f43f6e;
  border: 4px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f43f6e;
  white-space: nowrap;
}

.timeline-place {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.6rem;
}

.timeline-list li {
  color: #334155;
  position: relative;
  padding-left: 0.4rem;
}

.timeline-list li::before {
  content: "•";
  color: #f43f6e;
  position: absolute;
  left: -12px;
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}

/* ==================================================
   6. EDUCATION
   ================================================== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.edu-year {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f43f6e;
  margin-bottom: 0.5rem;
}

.edu-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #1e293b;
}

.edu-deg {
  font-size: 0.95rem;
  color: #334155;
  margin-bottom: 1rem;
}

.gpa-chip,
.gpa-chip-plain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.gpa-chip {
  background: rgba(244, 63, 110, 0.1);
  color: #be185d;
}

.gpa-chip-plain {
  background: rgba(244, 63, 110, 0.08);
  color: #1e293b;
}

/* ==================================================
   7. SERTIFIKASI (Gaya LinkedIn — List Vertikal)
   ================================================== */
.cert-list {
  position: relative;
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
}

.cert-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 27px;
  width: 2px;
  background: #fbcfe8;
}

.cert-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.4rem 0;
}

.cert-item + .cert-item {
  border-top: none;
}

.cert-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f43f6e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(244, 63, 110, 0.25);
}

.cert-content {
  flex: 1;
  min-width: 0;
}

.cert-content h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 0.15rem;
}

.cert-junior {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748a;
  margin-top: 0.1rem;
}

.cert-issuer {
  font-size: 0.88rem;
  font-weight: 600;
  color: #be185d;
  margin-bottom: 0.3rem;
}

.cert-date {
  font-size: 0.82rem;
  color: #94a3b8;
}

.cert-date time {
  font-style: normal;
}

.cert-btn {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f43f6e;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.cert-btn:hover,
.cert-btn:focus {
  color: #db285f;
  text-shadow: 0 0 6px rgba(244, 63, 110, 0.4);
  outline: none;
}

/* ==================================================
   8. PROJECT
   ================================================== */
.project-card {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 2rem;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.project-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.project-body {
  padding: 1.75rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.project-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f43f6e;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.6rem;
}

.project-body p {
  color: #334155;
  font-size: 0.93rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

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

.project-tags li {
  font-size: 0.78rem;
  font-weight: 600;
  color: #be185d;
  background: rgba(244, 63, 110, 0.08);
  border-radius: 8px;
  padding: 4px 10px;
}

/* ==================================================
   9. CONTACT
   ================================================== */
.contact {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
}

.contact .section-head-light .section-title {
  color: #fbcfe8;
}

.contact .section-title::after {
  background: #fbcfe8;
}

.contact .section-sub {
  color: #cbd5e1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  color: #fbcfe8;
}

.contact-info p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.contact-loc {
  font-style: normal;
  color: #cbd5e1;
  font-weight: 400;
}

.contact-loc strong {
  color: #f43f6e;
  display: block;
  margin-bottom: 2px;
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1.5px solid #475569;
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.93rem;
  transition: border-color 0.25s ease, background 0.25s ease;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #f43f6e;
  background: rgba(255, 255, 255, 0.09);
}

.form-note {
  font-size: 0.85rem;
  min-height: 1.2rem;
}

.form-success {
  color: #86efac;
}

.form-error {
  color: #fca5a5;
}

/* ==================================================
   10. FOOTER
   ================================================== */
.footer {
  background: #1e293b;
  color: #94a3b8;
  border-top: 1px solid #334155;
  position: relative;
  overflow: hidden;
}

.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: 14rem;
  font-weight: 900;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.2em;
  color: rgba(244, 63, 110, 0.05);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3rem 0 1.5rem;
}

.footer-col-brand {
  max-width: 260px;
}

.footer-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fbcfe8;
  margin-bottom: 0.7rem;
}

.footer-desc {
  font-size: 0.83rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-top: 0.7rem;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fbcfe8;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  padding-left: 0;
}

.footer-nav a:hover {
  color: #f43f6e;
  padding-left: 4px;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding: 1rem 0;
  margin-top: 1.5rem;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.copyright {
  font-size: 0.78rem;
  color: #94a3b8;
}

.footer-dev {
  font-size: 0.75rem;
  color: #64748a;
}

.footer-dev-link {
  color: #fbcfe8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-dev-link:hover {
  color: #f43f6e;
}

/* ==================================================
   11. BACK TO TOP
   ================================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f43f6e;
  color: #ffffff;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 99;
  box-shadow: 0 4px 14px rgba(244, 63, 110, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #db285f;
  transform: translateY(-2px) scale(1.05);
}

.arrow-up {
  display: block;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 11px solid #ffffff;
}

/* ==================================================
   12. RESPONSIVE (Mobile-first)
   ================================================== */

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: -100%;
    width: 100%;
    max-width: 280px;
    height: calc(100vh - 64px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-right: 1px solid #fbcfe8;
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 98;
  }

  .nav-overlay {
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 97;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 2rem 1.5rem;
  }

  .nav-link {
    padding: 0.85rem 0;
    border-bottom: 1px solid #fbcfe8;
    width: 100%;
    display: block;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .hero {
    padding-block: 2.5rem;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 30%, #fce7f3 0%, transparent 45%);
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(252, 232, 243, 0.6);
    filter: blur(40px);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
  }

  .hero-media {
    display: none;
  }

  .hero-text {
    align-items: center;
    gap: 0.9rem;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .hero-name {
    font-size: 1.65rem;
    line-height: 1.15;
  }

  .hero-title {
    font-size: 1.05rem;
  }

  .hero-loc {
    font-size: 0.8rem;
  }

  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #475569;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 1rem;
  }

  .stat-num {
    font-size: 1.2rem;
  }

  .about-grid,
  .edu-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .edu-grid {
    gap: 1.5rem;
  }

  .timeline {
    padding-inline-start: 1.5rem;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-col-brand {
    max-width: 100%;
  }

  .watermark {
    font-size: 8rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section {
    padding-block: 3.5rem;
  }
}

/* Large desktop (≥ 1100px) */
@media (min-width: 1100px) {
  .hero {
    padding-block: 5.5rem;
  }
}

/* Large tablet / small laptop (769px – 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-name {
    font-size: 1.9rem;
  }

  .section {
    padding-block: 4rem;
  }
}
