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

:root {
  --cream:   #F5F0E8;
  --yellow:  #F5C842;
  --mint:    #C3ECD4;
  --purple:  #C9BFFF;
  --sky:     #BEE6F8;
  --peach:   #FFC2A5;
  --lime:    #D8EE82;
  --pink:    #FFB8D2;
  --dark:    #1A1A2E;
  --accent:  #1A1A2E;
  --white:   #FFFFFF;
  --gray:    #888;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background blobs ── */
.bg-blob {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.bg-blob::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, #e8e0d0 0%, transparent 70%);
  border-radius: 60% 40% 55% 45%;
}
.bg-blob::after {
  content: '';
  position: absolute; bottom: -100px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ddd5c8 0%, transparent 70%);
  border-radius: 40% 60% 45% 55%;
}

/* ── Navbar ── */
nav {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 52px;
  background: transparent;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 18px;
  color: var(--dark); text-decoration: none;
}
.logo-icon {
  width: 38px; height: 38px; background: var(--dark);
  border-radius: 10px; display: grid; place-items: center;
}
.logo-icon svg { width: 22px; height: 22px; fill: #fff; }

.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--dark);
  font-size: 14px; font-weight: 500;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: .6; }

.nav-actions { display: flex; gap: 10px; }
.btn-outline {
  padding: 9px 22px; border-radius: 999px;
  border: 1.5px solid var(--dark); background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-solid {
  padding: 9px 22px; border-radius: 999px;
  border: none; background: var(--dark); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.btn-solid:hover { opacity: .85; transform: translateY(-1px); }

/* ── Hero ── */
.hero {
  position: relative; z-index: 5;
  text-align: center;
  padding: 36px 24px 28px;
}
.hero-badge {
  display: inline-block;
  font-size: 18px; font-weight: 600; color: var(--dark);
  margin-bottom: 32px; letter-spacing: .3px;
}
.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -1.5px; color: var(--dark);
  margin-bottom: 12px;
}
.hero h1 span { color: #555; }

/* Search bar */
.search-bar {
  display: flex; align-items: center;
  max-width: 540px; margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.search-bar svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .4; }
.search-bar input {
  flex: 1; border: none; outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; color: var(--dark);
  background: transparent; padding: 8px 12px;
}
.search-bar input::placeholder { color: #aaa; }
.btn-cta {
  padding: 12px 26px; border-radius: 999px;
  border: none; background: var(--dark); color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 14px; cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
}
.btn-cta:hover { opacity: .85; transform: translateY(-1px); }

/* ── Card Grid ── */
.cards-section {
  position: relative; z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px;
  max-width: 960px;
  margin: 32px auto 60px;
  padding: 0 24px;
}

.card {
  border-radius: 24px;
  padding: 28px;
  position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

.card-label {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--dark); margin-bottom: 16px;
}
.card-icon {
  width: 28px; height: 28px; background: rgba(255,255,255,.55);
  border-radius: 8px; display: grid; place-items: center;
}
.card-icon svg { width: 16px; height: 16px; }

/* Card colors */
.card-yellow  { background: var(--yellow); }
.card-mint    { background: var(--mint); }
.card-purple  { background: var(--purple); }
.card-sky     { background: var(--sky); }
.card-peach   { background: var(--peach); }
.card-lime    { background: var(--lime); }
.card-pink    { background: var(--pink); }

/* Card Split Layout */
.card-split {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  margin-top: auto;
}
.card-split-text {
  flex: 1;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}
.card-split-img {
  flex: 1;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
}
.card-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-pcmb .card-split-img {
  height: 120px;
}

/* Card positions in grid */
.card-jadwal { grid-area: 1 / 1 / 2 / 2; display: flex; flex-direction: column; min-height: 190px; }
.card-pcmb { grid-area: 1 / 2 / 2 / 3; display: flex; flex-direction: column; min-height: 190px; }
.card-jurusan { grid-area: 1 / 3 / 3 / 4; padding: 0; display: flex; flex-direction: column; min-height: 400px; }
.card-persyaratan-umum { grid-area: 2 / 1 / 3 / 2; display: flex; flex-direction: column; min-height: 190px; }
.card-persyaratan-khusus { grid-area: 2 / 2 / 3 / 3; display: flex; flex-direction: column; min-height: 190px; }
.card-jalur { grid-area: 3 / 1 / 4 / 2; display: flex; flex-direction: column; min-height: 190px; }
.card-kontak { grid-area: 3 / 2 / 4 / 3; display: flex; flex-direction: column; min-height: 190px; }
.card-foto { grid-area: 3 / 3 / 4 / 4; padding: 0; min-height: 190px; }
.card-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.card-2-head { padding: 24px 24px 16px; }
.card-2-head .card-label { margin-bottom: 12px; }
.card-2-avatars { display: flex; flex-direction: column; gap: 10px; padding: 0 24px; }
.avatar-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.5);
  border-radius: 999px; padding: 6px 14px 6px 6px;
}
.avatar-img {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.avatar-name { font-size: 12px; font-weight: 600; }
.avatar-jurusan { font-size: 10px; color: #555; }
.add-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--dark); color: #fff;
  border: none; font-size: 22px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  align-self: flex-start; margin: 14px 24px;
  transition: transform .2s;
}
.add-btn:hover { transform: rotate(90deg) scale(1.1); }
.card-2-photo {
  flex: 1; overflow: hidden; border-radius: 0 0 24px 24px;
  position: relative;
}
.card-2-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
.photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--mint) 0%, transparent 40%);
}

/* Card 3 – Use Preset */
.card-3 { min-height: 190px; display: flex; flex-direction: column; }
.card-3-visual {
  flex: 1; display: flex; align-items: center; justify-content: center;
}
.doc-mock {
  background: #fff; border-radius: 12px;
  padding: 12px 16px; width: 100%; max-width: 180px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.doc-line {
  height: 8px; border-radius: 4px;
  background: #e0e0e0; margin-bottom: 6px;
}
.doc-line:nth-child(1) { width: 80%; }
.doc-line:nth-child(2) { width: 60%; }
.doc-line:nth-child(3) { width: 90%; }
.doc-line:nth-child(4) { width: 50%; }
.doc-icon {
  width: 32px; height: 32px; background: var(--dark);
  border-radius: 8px; display: grid; place-items: center;
  margin-bottom: 10px;
}
.doc-icon svg { width: 18px; height: 18px; fill: #fff; }

/* Card 4 – Use Template */
.card-4 { min-height: 190px; padding: 0; overflow: hidden; }
.card-4-inner { padding: 24px; }
.card-4-img-wrap { position: relative; height: 110px; }
.card-4-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 0 0 24px 24px;
}
.wave-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--sky) 0%, transparent 60%);
}
.card-4-add {
  position: absolute; right: 16px; bottom: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--dark); color: #fff;
  border: none; font-size: 20px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}

/* Card 5 – Connect */
.card-5 { min-height: 190px; display: flex; flex-direction: column; }
.card-5 .card-desc { font-size: 12px; color: #555; margin-bottom: auto; line-height: 1.5; }
.connect-row {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  background: rgba(255,255,255,.6); border-radius: 999px;
  padding: 8px 8px 8px 20px; margin-top: 12px;
}
.connect-row span { font-size: 13px; font-weight: 600; margin-right: auto; }
.connect-add {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--dark); color: #fff;
  border: none; font-size: 20px; cursor: pointer;
  display: grid; place-items: center;
}

/* ── Footer ── */
footer {
  position: relative; z-index: 5;
  text-align: center; padding: 24px;
  font-size: 12px; color: var(--gray);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge { animation: fadeUp .5s ease both; }
.hero h1    { animation: fadeUp .6s .1s ease both; }
.search-bar { animation: fadeUp .6s .2s ease both; }
.card       { animation: fadeUp .6s ease both; }
.card-jadwal { animation-delay: .3s; }
.card-pcmb { animation-delay: .35s; }
.card-jurusan { animation-delay: .4s; }
.card-persyaratan-umum { animation-delay: .45s; }
.card-persyaratan-khusus { animation-delay: .5s; }
.card-jalur { animation-delay: .55s; }
.card-kontak { animation-delay: .6s; }
.card-foto { animation-delay: .65s; }

/* ── Responsive ── */
@media (max-width: 760px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .cards-section {
    display: flex;
    flex-direction: column;
  }
  .card-jadwal { order: 1; }
  .card-jurusan { order: 2; }
  .card-pcmb { order: 3; }
  .card-jalur { order: 4; }
  .card-persyaratan-umum { order: 5; }
  .card-persyaratan-khusus { order: 6; }
  .card-kontak { order: 7; }
  .card-foto { order: 8; height: 250px; }
}

/* ── Modal & Interactive Jurusan ── */
.jurusan-item {
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.jurusan-item:hover {
  background: rgba(255,255,255,.8);
  transform: translateX(4px);
}

.modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  max-width: 400px;
  width: 90%;
  margin: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
}
.modal::backdrop {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(4px);
}
.modal-content {
  padding: 32px;
  background: var(--white);
  color: var(--dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  position: relative;
}
.modal-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  margin-bottom: 12px;
  padding-right: 24px;
}
.modal-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray);
  transition: color .2s;
}
.close-btn:hover {
  color: var(--dark);
}

/* ── Modal Large & Timeline ── */
.modal-large {
  max-width: 500px;
}
.timeline {
  border-left: 2px solid var(--sky);
  padding-left: 20px;
  margin: 10px 0 20px 10px;
}
.timeline-item {
  position: relative;
  margin-bottom: 24px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid #fff;
}
.timeline-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  font-size: 15px;
}
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #444;
}
.timeline-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #eee;
}
.timeline-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.timeline-list li span:last-child {
  font-weight: 600;
  color: var(--dark);
  text-align: right;
  margin-left: 10px;
}
