/*
Theme Name: Palti Sinaga Portfolio
Theme URI: https://paltisinaga.id
Author: Palti Sinaga
Author URI: https://paltisinaga.id
Description: Personal portfolio theme for Palti Sinaga — Digital Product Designer & Tech Strategist. Clean, Notion-inspired, techy but warm.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: palti-theme
Tags: portfolio, minimal, one-column, custom-menu, custom-logo, featured-images, blog
*/

/* ============================================================
   PALTI SINAGA PORTFOLIO THEME
   Notion-inspired · Techy · Clean · Fun
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:           #ffffff;
  --bg-hover:     #f7f7f5;
  --bg-card:      #fafaf8;
  --bg-tag:       #f1f0ec;
  --border:       #e9e9e6;
  --border-dark:  #d4d4cf;
  --text:         #1a1a18;
  --text-2:       #5a5a56;
  --text-3:       #9b9b96;
  --accent:       #2563eb;
  --accent-light: #dbeafe;
  --accent-muted: #eff6ff;
  --green:        #16a34a;
  --green-light:  #dcfce7;
  --mono:         'DM Mono', monospace;
  --sans:         'DM Sans', sans-serif;
  --radius:       8px;
  --radius-lg:    14px;
  --shadow:       0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,.08);
  --nav-h:        56px;
  --transition:   0.18s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Nav ────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 860px; margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.7); }
}
.main-navigation ul {
  display: flex; align-items: center; gap: 4px;
}
.main-navigation a {
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  padding: 5px 10px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  display: block;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: var(--bg-hover);
  color: var(--text);
}
.main-navigation .menu-cta > a {
  background: var(--text);
  color: #fff !important;
  padding: 5px 13px;
}
.main-navigation .menu-cta > a:hover { opacity: .8; }

/* Mobile nav toggle */
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 10px;
  font-size: 16px; cursor: pointer; color: var(--text);
}
@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .main-navigation { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px; }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; gap: 4px; align-items: stretch; }
  .main-navigation a { padding: 10px 14px; }
}

/* ── Layout ─────────────────────────────────────────────────── */
.site-main { padding-top: var(--nav-h); min-height: 100vh; }
.container  { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 64px 0; }

/* ── Typography ─────────────────────────────────────────────── */
.page-emoji { font-size: 36px; margin-bottom: 12px; display: block; }
h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 600; }
.subtitle  { font-size: 17px; color: var(--text-2); line-height: 1.6; margin-top: 12px; }
.mono-text { font-family: var(--mono); font-size: 12px; color: var(--text-3); }

.section-label {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-3);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::after { content:''; flex:1; height:1px; background:var(--border); }

/* ── Tags / Badges ──────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-tag); color: var(--text-2);
  font-family: var(--mono); font-size: 11px;
  padding: 3px 8px; border-radius: 4px;
  border: 1px solid var(--border);
}
.tag-blue   { background: var(--accent-muted); color: var(--accent); border-color: var(--accent-light); }
.tag-green  { background: var(--green-light);  color: var(--green);  border-color: #bbf7d0; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  font-family: var(--sans); cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary  { background: var(--text); color: #fff; }
.btn-primary:hover { opacity: .82; }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--border-dark); }
.btn-secondary:hover { background: var(--bg-hover); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-dark); transform: translateY(-1px); }

/* ── Callout ────────────────────────────────────────────────── */
.callout {
  background: var(--accent-muted); border: 1px solid var(--accent-light);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 14px 18px; font-size: 14px; color: var(--text-2);
  display: flex; gap: 10px; align-items: flex-start; margin: 24px 0;
}
.callout-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Divider ────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ── Grid ───────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0; text-align: center;
}
.site-footer p { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.footer-links  { display: flex; justify-content: center; gap: 20px; margin-top: 12px; }
.footer-links a { font-size: 13px; color: var(--text-3); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }

/* ── Reveal animation ───────────────────────────────────────── */
/* Fallback: content becomes visible after 1.5s even if JS fails */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
  animation: revealFallback 0s 1.5s forwards;
}
.reveal.visible { opacity: 1 !important; transform: translateY(0) !important; animation: none; }
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .5s ease forwards;
  animation-fill-mode: forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: .10s; }
.delay-2 { animation-delay: .20s; }
.delay-3 { animation-delay: .30s; }
.delay-4 { animation-delay: .40s; }

/* ── WP Core compatibility ──────────────────────────────────── */
.wp-block-image img { border-radius: var(--radius); }
.aligncenter { display:block; margin:0 auto; }
.screen-reader-text { position:absolute; left:-9999px; }

/* ── Contact Form (WP Forms / CF7 override) ─────────────────── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpforms-field input,
.wpforms-field textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px;
  background: var(--bg-card); color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpforms-field input:focus,
.wpforms-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.wpcf7-form input[type="submit"],
.wpforms-submit-container button {
  background: var(--text); color: #fff;
  border: none; padding: 10px 20px;
  border-radius: var(--radius); font-size: 13px;
  font-weight: 600; cursor: pointer;
  font-family: var(--sans);
  transition: opacity var(--transition);
}
.wpcf7-form input[type="submit"]:hover,
.wpforms-submit-container button:hover { opacity: .82; }
