/* ============================================================
   Aleyya Innasya — Portfolio
   Minimalist elegant: warm white, near-black ink, sage accent
   ============================================================ */

:root {
  --bg: #faf9f6;
  --bg-tint: #f2f0ea;
  --ink: #1a1a1a;
  --ink-soft: #55524b;
  --ink-faint: #8a867c;
  --accent: #5b6650;
  --accent-soft: #e6e8e0;
  --line: #e3e0d8;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --container: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.nav__brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.nav__dot { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--ink); }

.nav__cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 7px 18px !important;
  color: var(--ink) !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__cta:hover {
  background: var(--ink);
  color: var(--bg) !important;
}

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

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 130px 0 110px;
}

.hero__inner { max-width: 860px; }

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.hero__tagline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero__links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.hero__links a {
  color: var(--ink-faint);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__links a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}

.btn--primary:hover { background: var(--accent); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn--ghost:hover { border-color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }

.section--tinted {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 44px;
}

.subsection__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}

.about__grid .section__title { margin-bottom: 0; }

.about__body p + p { margin-top: 18px; }

.about__body {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.about__body--wide {
  max-width: 720px;
}

/* ---------- Experience timeline ---------- */
.timeline {
  border-left: 1px solid var(--line);
  margin-left: 6px;
}

.timeline__item {
  position: relative;
  padding: 0 0 48px 40px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline__item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
}

.timeline__period {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.timeline__role {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.timeline__org {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 4px;
}

.timeline__points {
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.timeline__points li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.timeline__points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

/* ---------- Education ---------- */
.edu {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}

.edu__school {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.edu__degree {
  color: var(--ink-soft);
  margin-top: 4px;
}

.edu__period {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Certifications & Awards ---------- */
.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-list__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.card-list__name {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.45;
}

.card-list__meta {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ---------- Projects ---------- */
.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(26, 26, 26, 0.08);
}

.project-card__thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__thumb--snake {
  background: linear-gradient(135deg, #2e3328, #5b6650);
}

.project-card__thumb--soon {
  background: repeating-linear-gradient(
    -45deg,
    var(--bg-tint),
    var(--bg-tint) 12px,
    #edeae2 12px,
    #edeae2 24px
  );
}

.project-card__glyph {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #e6e8e0;
  letter-spacing: 0.3em;
}

.project-card__thumb--soon .project-card__glyph {
  color: var(--ink-faint);
}

.project-card__body {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.project-card__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.project-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.project-card__desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.project-card__link {
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.project-card__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Skills ---------- */
.skill-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.skill-tags li {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */
.contact__inner {
  text-align: center;
  max-width: 720px;
}

.contact__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.18;
  margin-bottom: 34px;
}

.contact__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.contact__meta {
  color: var(--ink-faint);
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer a:hover { color: var(--ink); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about__grid,
  .two-col,
  .projects__grid { grid-template-columns: 1fr; gap: 40px; }

  .timeline__item { grid-template-columns: 1fr; gap: 12px; }

  .hero { padding: 90px 0 80px; }

  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 22px;
    display: none;
  }

  .nav__links.is-open { display: flex; }

  .nav__links a { padding: 10px 0; font-size: 1rem; }

  .nav__cta { border: none; padding: 10px 0 !important; }
}
