/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;1,400&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
  /* Putih Tulang (Ivory / Off-White) */
  --ivory-50: #FDFAF5;
  --ivory-100: #F7F3EB;
  --ivory-200: #EFE9DD;
  --ivory-300: #E5DDCD;
  --ivory-400: #D8CEBB;

  /* Biru Muda (Light Sky Blue / Soft Blue Accent) */
  --blue-50: #F0F6FD;
  --blue-100: #E0EDFC;
  --blue-200: #BAD9F9;
  --blue-300: #88BFF4;
  --blue-500: #2B7FD4;
  --blue-600: #1B66B5;
  --blue-700: #144C87;

  /* Neutral Slate */
  --slate-900: #141A24;
  --slate-800: #1F2837;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;

  /* Semantic */
  --bg-primary: var(--ivory-50);
  --bg-secondary: var(--ivory-100);
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: rgba(255, 255, 255, 0.9);
  --text-primary: var(--slate-900);
  --text-secondary: var(--slate-600);
  --text-muted: var(--slate-500);
  
  --accent: var(--blue-500);
  --accent-light: var(--blue-100);
  --accent-dark: var(--blue-700);
  --border-subtle: rgba(43, 127, 212, 0.14);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(20, 26, 36, 0.04);
  --shadow-md: 0 6px 24px rgba(20, 26, 36, 0.06);
  --shadow-lg: 0 14px 40px rgba(20, 26, 36, 0.09);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Layout */
  --max-width: 1140px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Ambient glow accents */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-circle-1 {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-100) 0%, transparent 70%);
  opacity: 0.65;
}

.ambient-circle-2 {
  position: absolute;
  bottom: 25%;
  left: -140px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ivory-300) 0%, transparent 70%);
  opacity: 0.45;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease-out, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 13px 0;
  background: rgba(253, 250, 245, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--slate-900);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--slate-600);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--blue-50);
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--blue-600);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-800);
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 125px 0 75px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

.hero-title {
  font-size: clamp(2.4rem, 4.3vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--slate-900);
}

.hero-title .title-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 14px;
}

.hero-description {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-meta-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-meta-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--slate-700);
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--accent);
  box-shadow: 0 4px 14px rgba(43, 127, 212, 0.22);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 127, 212, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--slate-800);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--blue-50);
  border-color: var(--blue-300);
  color: var(--accent-dark);
}

/* Personal Branding Half-Body Photo Frame */
.hero-photo-wrapper {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ivory-200);
  border: 5px solid #ffffff;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1.05;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
}

.hero-photo-frame:hover img {
  transform: scale(1.03);
}

.hero-badge-float {
  position: absolute;
  bottom: 18px;
  left: -16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.hero-badge-float .badge-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.hero-badge-float .badge-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== SECTION COMMON ===== */
section {
  position: relative;
  z-index: 1;
  padding: 85px 0;
}

.section-title-wrap {
  margin-bottom: 40px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--blue-50);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1rem;
  color: var(--slate-600);
  margin-top: 8px;
  max-width: 640px;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--bg-secondary);
}

.about-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  box-shadow: var(--shadow-sm);
}

.about-summary-text {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--slate-700);
  margin-bottom: 28px;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.highlight-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-md);
  padding: 20px;
}

.highlight-box h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.highlight-box p {
  font-size: 0.94rem;
  color: var(--slate-700);
  line-height: 1.6;
}

/* ===== STORY / NARRATIVE SECTION (Karir & Pendidikan dalam Paragraf) ===== */
.narrative-section {
  background: var(--bg-primary);
}

.narrative-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 42px 48px;
  box-shadow: var(--shadow-sm);
}

.narrative-lead {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--slate-900);
  line-height: 1.8;
  margin-bottom: 22px;
  border-left: 4px solid var(--accent);
  padding-left: 18px;
}

.narrative-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.narrative-body p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--slate-700);
}

.narrative-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ivory-200);
}

.narrative-pill {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--ivory-100);
  border: 1px solid var(--ivory-300);
  color: var(--slate-700);
}

/* ===== SKILLS SECTION ===== */
.skills {
  background: var(--bg-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.skill-category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.skill-category-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-category-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

.skill-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--slate-700);
  background: var(--ivory-100);
  border: 1px solid var(--ivory-300);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.skill-category-card:hover .skill-pill {
  border-color: var(--blue-200);
  background: var(--blue-50);
  color: var(--accent-dark);
}

/* ===== PROJECTS / PORTFOLIO SECTION ===== */
.projects {
  background: var(--bg-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-300);
}

.project-media {
  width: 100%;
  height: 210px;
  background: var(--ivory-200);
  overflow: hidden;
  position: relative;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.project-badge {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.live-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulse-live 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-live {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

.project-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 10px;
}

.project-text {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-tech-tag {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--accent-dark);
}

.project-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--blue-200);
  background: #ffffff;
  transition: var(--transition);
}

.project-link-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-link-btn.btn-github {
  border-color: rgba(20, 26, 36, 0.18);
  color: var(--slate-800);
  background: var(--ivory-50);
}

.project-link-btn.btn-github:hover {
  background: var(--slate-900);
  color: #ffffff;
  border-color: var(--slate-900);
}

.project-btn-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-info-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-info-desc {
  font-size: 0.98rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 26px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-detail-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--ivory-200);
  padding-bottom: 12px;
}

.contact-detail-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin-bottom: 2px;
}

.contact-detail-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--slate-900);
}

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ivory-300);
  border-radius: var(--radius-sm);
  background: var(--ivory-50);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--slate-900);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(43, 127, 212, 0.12);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--slate-900);
  color: #E2E8F0;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-brand span {
  color: var(--blue-300);
}

.footer-sub {
  font-size: 0.88rem;
  color: var(--slate-400);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--slate-400);
}

.footer-links a:hover {
  color: var(--blue-200);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-meta-items, .hero-actions {
    justify-content: center;
  }

  .hero-photo-wrapper {
    max-width: 320px;
  }

  .hero-badge-float {
    left: 8px;
  }

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

  .about-card, .narrative-card {
    padding: 30px 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: rgba(253, 250, 245, 0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
  }

  .nav-toggle {
    display: flex;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
