@font-face {
  font-family: 'General Sans';
  src: url('font/GeneralSans-Variable.woff2') format('woff2');
  font-weight: 100 900;
}

:root{
  --ink:#191b18;
  --muted:#5c5f57;
  --faint:#93958c;
  --line:#e1ded4;
  --paper:#ffffff;
  --card:#ffffff;
  --signal:#3d6b52;
  --signal-dim:#e9efe9;
  --alert:#f0b27a;

  --font-body: 'General Sans', sans-serif;
  --font-serif: 'General Sans', sans-serif;
  --font-mono: 'General Sans', sans-serif;
}
*{ box-sizing:border-box; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
}
::selection{ background:var(--signal-dim); color:var(--signal); }
.wrap{ padding:0 60px; }
a{ color:inherit; }
a:focus-visible{ outline:2px solid var(--signal); outline-offset:3px; }

/* ===========================
   HEADER
=========================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: var(--navbar-bg);
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 9999;
    font-family: 'General Sans', sans-serif;
}

.logo-img {
    height: 65px;
    width: auto;
}


/* ===========================
   MAIN NAV
=========================== */
.main-nav {
    display: flex;
    align-items: center;
}

.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    font-size: 20px;
    font-family: 'General Sans', sans-serif;
}

.main-menu li              { margin-right: 30px; }
.main-menu li:last-child   { margin-right: 0; }

.nav-item {
    text-decoration: none;
    color: var(--navbar-text);
    padding: 5px 0;
    display: block;
    transition: color 0.2s;
    font-family: 'General Sans', sans-serif;
}

.main-item:hover              { color: var(--hover-color); }
.main-item.active,
.main-item.clicked            { color: var(--click-color); }
body.dark .main-item.active,
body.dark .main-item.clicked  { color: var(--click-color); }

/* hero / title block */
.hero{ padding:32px 0 48px; text-align:center; }
.eyebrow{
  font-family:var(--font-mono); font-size:12.5px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--signal); margin:0 auto 24px;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--signal); }
h1.title{
  font-family:var(--font-serif); font-weight:600;
  font-size:clamp(30px, 4.4vw, 46px); line-height:1.22;
  letter-spacing:-0.01em; margin:0 auto 28px; max-width:780px;
}

/* info grid — mirrors Notion properties block */
.info-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:0;
  margin-bottom:56px;
  overflow:hidden;
}
.info-top{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
}
.info-top .cell{
  padding:20px 22px;
  border-right:1px solid var(--line);
}
.info-top .cell:last-child{ border-right:none; }
.k{
  font-family:var(--font-mono); font-size:11px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--faint); margin-bottom:8px;
  display:flex; align-items:center; gap:6px;
}
.v{ font-size:14.5px; color:var(--ink); line-height:1.5; }
.v a{ text-decoration:none; border-bottom:1px solid var(--line); }
.v a:hover{ border-color:var(--ink); }

.info-desc{
  padding:22px;
  border-top:1px solid var(--line);
}
.info-desc .k{ margin-bottom:12px; }
.info-desc p{ font-size:15px; line-height:1.75; color:var(--muted); margin:0; }

.info-bottom{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  border-top:1px solid var(--line);
}
.info-bottom .cell{ padding:20px 22px; }
.info-bottom .cell:first-child{ border-right:1px solid var(--line); }
.chip-row{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  font-size:12.5px; font-family:var(--font-mono);
  border:1px solid var(--line); color:var(--muted);
  padding:5px 11px; border-radius:100px;
}

/* section shell */
section{ padding-bottom:56px; }
h2.sec-title{
  font-family:var(--font-serif); font-weight:600; font-size:24px;
  margin:0 0 20px;
}

/* diagnosed / audit panel */
.panel{
  background:#14231b;
  border-radius:12px;
  overflow:hidden;
  color:#e8ede9;
  margin-bottom:56px;
}
.panel-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 22px;
  border-bottom:1px solid rgba(255,255,255,.1);
  font-family:var(--font-mono);
  font-size:12px; letter-spacing:.05em;
}
.panel-head .dots{ display:flex; gap:6px; }
.panel-head .dots span{ width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.18); display:block; }
.panel-head .status{ display:flex; align-items:center; gap:8px; color:var(--alert); }
.panel-head .status::before{
  content:''; width:6px; height:6px; border-radius:50%; background:var(--alert);
  animation:pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }
.panel-body{ padding:22px; }
.audit-list{ list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.audit-list li{
  display:flex; gap:12px; align-items:flex-start;
  font-size:14.5px; line-height:1.65; color:#dbe2dd;
}
.audit-list .ic{ font-size:16px; line-height:1.5; flex:none; }
.audit-list strong{ color:#fff; font-weight:600; }

/* problem / opportunity / solution */
.pos-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.pos-card{ background:var(--card); padding:26px 24px; }
.pos-card .pos-label{
  font-family:var(--font-mono); font-size:11.5px; font-weight:500;
  letter-spacing:.06em; text-transform:uppercase; color:var(--signal);
  margin-bottom:14px;
}
.pos-card p{ font-size:14.5px; line-height:1.75; color:var(--muted); margin:0; }

/* placeholders for screenshots + reflection, to be filled by user */
/* screenshots — desktop + mobile side by side */
.shots{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  align-items:start;
}
.shots .placeholder-block{
  aspect-ratio: 4 / 3;
  overflow:hidden;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--signal-dim);
}
.shots .placeholder-block img,
.shots .placeholder-block video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* what I learned — bullet list, matches audit-list rhythm but light theme */
.learned-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:20px;
}
.learned-list li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  font-size:14.5px;
  line-height:1.75;
  color:var(--muted);
  padding-left:0;
}
.learned-list li::before{
  content:'—';
  color:var(--signal);
  flex:none;
}

/* ===========================
   BACK TO TOP
=========================== */
.back-to-top {
    display: block;
    text-align: right;
    font-size: 18px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    padding: 0 60px 32px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.back-to-top:hover {
    transform: scale(1.05);
}


/* ===========================
   FOOTER
=========================== */
.main-footer {
    width: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* BỎ padding 60px */
    margin: 0; /* Đảm bảo không có margin */
}

.footer { 
    display: flex; 
    justify-content: center;
    align-items: center;
    gap: 280px;
    width: 1420px;
    max-width: calc(100% - 120px); /* Trừ đi padding 2 bên */
    height: 80px;
    background-color: #A3C9F1;
    border-radius: 15px;
}

.footer a {
    color: #000;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-highlight {
    font-size: 24px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
}


/* ===========================
   NAV ACTIONS / THEME / HAMBURGER
=========================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.theme-toggle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    outline: 1px solid var(--navbar-text);
    background-color: #000;
    transition: background-color 0.3s ease;
}

body.dark .theme-toggle { background-color: #fff; }

.hamburger-menu {
    cursor: pointer;
    width: 24px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px;
    transition: transform 0.3s;
}

.bar {
    width: 100%;
    height: 1.5px;
    background-color: var(--navbar-text);
    border: none;
    transition: all 0.3s;
}

.hamburger-menu.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 8px); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -8px); }

.dropdown-menu {
    list-style: none;
    padding: 10px 20px;
    margin: 0;
    position: absolute;
    top: 70px;
    right: 0;
    background: transparent;
    z-index: 1000;
    min-width: 150px;
    text-align: right;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    font-family: 'General Sans', sans-serif;
}

.dropdown-menu.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li  { padding: 8px 0; }
.dropdown-menu a   { color: var(--navbar-text); text-decoration: none; }

.sub-item          { font-size: 16px; }
.sub-item:hover    { color: var(--hover-color); }
.sub-item.active,
.sub-item.clicked  { color: var(--click-color); }