/* ================================================
   FITRIA LACHINSKY PORTFOLIO
   style.css
   ================================================ */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  background: #F5F0E8;
  color: #1C1917;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Tokens ── */
:root {
  --canvas:       #F5F0E8;
  --ink:          #1C1917;
  --ink-muted:    #6B5E52;
  --ink-faint:    #A09080;
  --parchment:    #E8E0D4;
  --flame:        #E8490A;
  --jade:         #2BAE8E;
  --sun:          #F0B429;
  --violet:       #7B61FF;
  --r:            16px;
  --r-pill:       100px;
}

/* ================================================
   NAV
   ================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28,25,23,0.08);
  padding: 0 80px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--flame); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 13px !important;
  font-weight: 500;
  padding: 8px 20px;
  border: 1.5px solid var(--flame);
  border-radius: var(--r-pill);
  color: var(--flame) !important;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover {
  background: var(--flame);
  color: white !important;
}

/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: calc(100vh - 72px);
  padding: 80px 80px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
}
.hero-left {
  display: flex;
  flex-direction: column;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(43,174,142,0.4);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  margin-bottom: 24px;
  width: fit-content;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.badge span {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--jade);
  letter-spacing: 0.5px;
}

/* Heading */
.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 20px;
  text-transform: none;
}
.hero h1 em {
  font-style: normal;
  color: var(--flame);
  text-decoration: underline;
  text-decoration-color: var(--flame);
  text-underline-offset: 4px;
}

/* Subtext */
.hero-sub {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 32px;
}

/* CTA buttons */
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 48px;
}
.btn-primary {
  display: inline-block;
  background: var(--flame);
  color: white;
  padding: 12px 28px;
  border-radius: var(--r-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: 12px 28px;
  border-radius: var(--r-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid rgba(28,25,23,0.25);
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--ink); }

/* Stats */
.hero-stats {
  display: flex;
  gap: 36px;
}
.stat-num {
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-num.accent { color: var(--flame); }
.stat-label {
  font-size: 12px;
  color: var(--ink-faint);
}

/* Hero right — photo */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
}
.hero-photo {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 3/4;
  display: block;
}
.hero-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 20px;
  background: var(--parchment);
  border: 2px dashed rgba(232,73,10,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  text-align: center;
  line-height: 1.6;
}

/* ================================================
   WORKS
   ================================================ */
.works {
  padding: 80px 80px;
  background: var(--canvas);
  border-top: 1px solid rgba(28,25,23,0.06);
}
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--jade);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1px;
  margin-bottom: 32px;
  text-transform: none;
}

/* Grid */
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* Card */
.card {
  background: var(--parchment);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  display: block;
  color: var(--ink);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28,25,23,0.1);
}
.card-thumb {
  width: 100%;
  object-fit: cover;
  display: block;
}
.card-thumb-placeholder {
  width: 100%;
  display: block;
}
.card-info {
  padding: 16px 18px 20px;
}

/* Tags */
.card-tag {
  display: inline-block;
  font-size: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 8px;
}
.tag-flame       { background: var(--flame); color: white; }
.tag-jade        { background: var(--jade);  color: white; }
.tag-sun         { background: var(--sun);   color: var(--ink); }
.tag-violet      { background: rgba(123,97,255,0.15); color: var(--violet); border: 1px solid rgba(123,97,255,0.3); }
.tag-flame-light { background: rgba(232,73,10,0.12);  color: var(--flame);  border: 1px solid rgba(232,73,10,0.2); }
.tag-gold        { background: rgba(240,180,41,0.15); color: #C9A020;       border: 1px solid rgba(240,180,41,0.3); }

.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  text-transform: none;
}
.card-desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Masonry positions */
.card-registrar   { grid-column: 1 / 3; }
.card-nambal      { grid-column: 3; grid-row: 1 / 3; }
.card-landing     { grid-column: 1 / 2; }
.card-illustration{ grid-column: 2 / 4; }

/* ================================================
   ABOUT
   ================================================ */
.about {
  background: var(--ink);
  padding: 80px 80px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: center;
}
.about-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--jade);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.about h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -1px;
  line-height: 1.15;
  color: #F5F0E8;
  margin-bottom: 18px;
  text-transform: none;
}
.about h2 em {
  font-style: normal;
  color: var(--flame);
}
.about-body {
  font-size: 15px;
  color: rgba(245,240,232,0.65);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 24px;
}
.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.pill {
  font-size: 12px;
  padding: 5px 14px;
  border: 1px solid rgba(245,240,232,0.18);
  border-radius: var(--r-pill);
  color: rgba(245,240,232,0.65);
}
.about-cta {
  display: inline-block;
  background: var(--flame);
  color: white;
  padding: 12px 28px;
  border-radius: var(--r-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.about-cta:hover { opacity: 0.9; }

/* About right — illustration */
.about-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-illus-wrap {
  width: 200px;
  height: 220px;
  border-radius: 18px;
  background: rgba(245,240,232,0.05);
  border: 1.5px dashed rgba(232,73,10,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,240,232,0.25);
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  text-align: center;
  line-height: 1.6;
  position: relative;
}
.about-illus-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}
.deco-circle-1 {
  position: absolute;
  top: -12px; right: -12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--flame);
  opacity: 0.85;
}
.deco-circle-2 {
  position: absolute;
  bottom: -10px; left: -10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sun);
}

/* ================================================
   CONTACT
   ================================================ */
.contact {
  padding: 100px 80px;
  background: var(--canvas);
  text-align: center;
}
.contact-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--jade);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.contact h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 14px;
  text-transform: none;
}
.contact-body {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 32px;
}
.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.contact-links {
  display: flex;
  gap: 28px;
  justify-content: center;
}
.contact-links a {
  font-size: 13px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--ink-muted);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-links a:hover {
  color: var(--flame);
  border-color: var(--flame);
}

/* ================================================
   FOOTER
   ================================================ */
footer {
  background: var(--ink);
  padding: 24px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p {
  font-size: 13px;
  color: rgba(245,240,232,0.35);
  font-family: 'DM Mono', monospace;
}
.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: rgba(245,240,232,0.6);
}
.footer-logo span { color: var(--flame); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  nav          { padding: 0 40px; }
  .hero        { padding: 60px 40px; }
  .works       { padding: 60px 40px; }
  .about       { padding: 60px 40px; }
  .contact     { padding: 60px 40px; }
  footer       { padding: 24px 40px; }
}

@media (max-width: 768px) {
  nav { padding: 0 24px; height: 60px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    min-height: auto;
    gap: 32px;
  }
  .hero-right { order: -1; }
  .hero-photo-wrap { max-width: 240px; margin: 0 auto; }
  .hero h1 { letter-spacing: -1px; }
  .hero-sub { font-size: 15px; }

  .works { padding: 48px 24px; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-registrar   { grid-column: 1 / 3; }
  .card-nambal      { grid-column: 1 / 3; grid-row: auto; }
  .card-landing     { grid-column: auto; }
  .card-illustration{ grid-column: auto; }

  .about {
    grid-template-columns: 1fr;
    padding: 48px 24px;
    gap: 32px;
  }
  .about-right { display: none; }

  .contact { padding: 60px 24px; }
  .contact-links { flex-direction: column; gap: 12px; align-items: center; }

  footer {
    padding: 20px 24px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .works-grid { grid-template-columns: 1fr; }
  .card-registrar   { grid-column: 1; }
  .card-nambal      { grid-column: 1; }
  .card-illustration{ grid-column: 1; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
