@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Mono:wght@300;400&display=swap');

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

:root {
  --bg: #ffffff;
  --surface: #f7f5f3;
  --accent: #0a0a0f;
  --red: #c0392b;
  --red-light: rgba(192,57,43,0.07);
  --red-border: rgba(192,57,43,0.25);
  --green: #00875a;
  --text: #0a0a0f;
  --muted: #88887a;
  --border: rgba(10,10,15,0.1);
  --F: 'Syne', sans-serif;
  --M: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--F); background: var(--bg); color: var(--text); overflow-x: hidden; cursor: none; }

/* CURSOR */
.cur { width: 10px; height: 10px; background: var(--red); border-radius: 50%; position: fixed; top:0;left:0; pointer-events:none; z-index:9999; mix-blend-mode:multiply; }
.cur-ring { width:34px;height:34px; border:1.5px solid rgba(192,57,43,0.3); border-radius:50%; position:fixed; top:0;left:0; pointer-events:none; z-index:9998; }

/* NAV */
nav {
  position: fixed; top:0;left:0;right:0; z-index:100;
  display: flex; justify-content:space-between; align-items:center;
  padding: 0 3rem; height: 64px;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display:flex; align-items:center; gap:0.75rem; text-decoration:none; }
.nav-logo-img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--red-border);
  background: var(--surface);
  display: flex; align-items:center; justify-content:center;
  overflow: hidden;
}
.nav-logo-img img { width:100%; height:100%; object-fit:cover; }
.nav-logo-placeholder {
  height: 44px;
  width: 160px;
  display: block;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  background-image: url('logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  flex-shrink: 0;
  font-size: 0;
  color: transparent;
}
.nav-logo-text { display: none; }

.nav-links { display:flex; gap:2rem; list-style:none; }
.nav-links a { font-family:var(--M); font-size:11px; color:var(--muted); text-decoration:none; letter-spacing:0.08em; text-transform:uppercase; transition:color 0.2s; padding: 0.25rem 0; border-bottom: 1.5px solid transparent; }
.nav-links a:hover, .nav-links a.active { color:var(--red); border-bottom-color: var(--red); }
.nav-cta { font-family:var(--M); font-size:11px; color:#fff; background:var(--accent); padding:0.55rem 1.25rem; text-decoration:none; letter-spacing:0.05em; transition:background 0.2s; }
.nav-cta:hover { background:var(--red); }

/* PAGE WRAPPER */
.page { padding-top: 64px; }

/* SECTIONS */
section { padding: 5rem 3rem; }
section.alt { background: var(--surface); }

.sec-head { display:flex; align-items:center; gap:1.5rem; margin-bottom:2.5rem; }
.sec-tag { font-family:var(--M); font-size:10px; color:var(--red); letter-spacing:0.18em; text-transform:uppercase; white-space:nowrap; }
.sec-line { flex:1; height:1px; background:var(--border); }
.sec-title { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight:800; letter-spacing:-0.03em; line-height:1.05; margin-bottom:2.5rem; }
.sec-title .pop { color:var(--red); }

/* GRID UTILS */
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--border); border:1px solid var(--border); }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--border); border:1px solid var(--border); }
.cell { background:var(--bg); padding:2rem; transition:background 0.2s; }
.cell:hover { background:var(--red-light); }
.cell.alt-bg { background: var(--surface); }
.cell.alt-bg:hover { background:var(--red-light); }

/* TAGS */
.tag { font-family:var(--M); font-size:10px; color:var(--muted); border:1px solid var(--border); padding:0.25rem 0.65rem; letter-spacing:0.04em; background:var(--bg); display:inline-block; }
.tag.hi { color:var(--red); border-color:var(--red-border); background:var(--red-light); }
.tags { display:flex; flex-wrap:wrap; gap:0.4rem; }

/* CERT PILL */
.cpill { font-family:var(--M); font-size:10px; color:var(--red); border:1px solid var(--red-border); padding:0.2rem 0.65rem; letter-spacing:0.08em; background:var(--red-light); display:inline-block; }

/* SKILL BAR */
.skill-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:0.85rem; }
.skill-label { font-family:var(--M); font-size:11px; color:rgba(10,10,15,0.6); white-space:nowrap; }
.skill-track { flex:1; height:2px; background:rgba(10,10,15,0.08); position:relative; overflow:hidden; }
.skill-fill { position:absolute; top:0;left:0; height:100%; background:var(--red); transform:scaleX(0); transform-origin:left; animation:fillBar 1.5s ease forwards; }
@keyframes fillBar { to{transform:scaleX(1)} }

/* TIMELINE */
.timeline { position:relative; }
.timeline::before { content:''; position:absolute; left:155px; top:0;bottom:0; width:1px; background:var(--border); }
.tl-item { display:grid; grid-template-columns:155px 1fr; gap:2.5rem; padding:2rem 0; border-bottom:1px solid var(--border); position:relative; }
.tl-item:last-child { border-bottom:none; }
.tl-item::before { content:''; position:absolute; left:149px; top:2.3rem; width:12px;height:12px; border-radius:50%; background:var(--bg); border:2px solid var(--red); z-index:1; }
.tl-period { font-family:var(--M); font-size:10px; color:var(--muted); letter-spacing:0.08em; text-align:right; padding-right:2rem; padding-top:0.2rem; }
.tl-body { padding-left:0.75rem; }
.tl-role { font-size:1rem; font-weight:700; margin-bottom:0.2rem; }
.tl-co { font-family:var(--M); font-size:11px; color:var(--red); margin-bottom:0.6rem; letter-spacing:0.06em; }
.tl-desc { font-size:13px; color:rgba(10,10,15,0.5); line-height:1.75; max-width:580px; }
.tl-bullets { list-style:none; margin-top:0.5rem; display:flex; flex-direction:column; gap:0.4rem; }
.tl-bullets li { font-size:12px; color:rgba(10,10,15,0.5); line-height:1.6; padding-left:1.1rem; position:relative; }
.tl-bullets li::before { content:'—'; position:absolute; left:0; color:var(--red); font-size:10px; top:2px; }

/* CONTACT FORM */
.form-field { display:flex; flex-direction:column; gap:0.35rem; }
.form-label { font-family:var(--M); font-size:10px; color:var(--muted); letter-spacing:0.15em; text-transform:uppercase; }
.form-input,.form-textarea { background:var(--bg); border:1px solid var(--border); color:var(--text); font-family:var(--M); font-size:13px; padding:0.75rem 1rem; outline:none; transition:border-color 0.2s; resize:none; width:100%; }
.form-input:focus,.form-textarea:focus { border-color:var(--red); }
.form-input::placeholder,.form-textarea::placeholder { color:var(--muted); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.btn-submit { background:var(--accent); color:#fff; border:none; font-family:var(--M); font-size:12px; font-weight:600; padding:0.9rem; letter-spacing:0.08em; text-transform:uppercase; cursor:pointer; transition:background 0.2s; width:100%; }
.btn-submit:hover { background:var(--red); }

/* FOOTER */
footer { border-top:1px solid var(--border); padding:1.5rem 3rem; display:flex; justify-content:space-between; align-items:center; background:var(--surface); }
.foot-copy { font-family:var(--M); font-size:10px; color:var(--muted); letter-spacing:0.06em; }
.foot-links { display:flex; gap:1.5rem; }
.foot-links a { font-family:var(--M); font-size:10px; color:var(--muted); text-decoration:none; letter-spacing:0.08em; text-transform:uppercase; transition:color 0.2s; }
.foot-links a:hover { color:var(--red); }

/* SCROLLBAR */
::-webkit-scrollbar { width:3px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:rgba(192,57,43,0.3); }

/* REVEAL */
.reveal { opacity:0; transform:translateY(22px); transition:opacity 0.65s ease,transform 0.65s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* BUTTONS */
.btn { display:inline-flex; align-items:center; gap:0.5rem; font-family:var(--M); font-size:12px; padding:0.75rem 1.5rem; text-decoration:none; letter-spacing:0.05em; transition:all 0.2s; cursor:pointer; border:none; }
.btn-dark { background:var(--accent); color:#fff; }
.btn-dark:hover { background:var(--red); transform:translateY(-2px); }
.btn-outline { border:1.5px solid rgba(10,10,15,0.15); color:var(--text); background:transparent; }
.btn-outline:hover { border-color:var(--red); color:var(--red); }

/* CONTACT LINKS LIST */
.clink-list { border:1px solid var(--border); }
.clink { display:flex; align-items:center; justify-content:space-between; padding:0.9rem 1.25rem; border-bottom:1px solid var(--border); text-decoration:none; color:var(--text); transition:background 0.2s; }
.clink:last-child { border-bottom:none; }
.clink:hover { background:var(--red-light); }
.clink-left { display:flex; align-items:center; gap:1rem; }
.clink-lbl { font-family:var(--M); font-size:10px; color:var(--muted); letter-spacing:0.12em; text-transform:uppercase; width:58px; }
.clink-val { font-size:13px; }
.clink-arr { font-size:11px; color:var(--red); transition:transform 0.2s; }
.clink:hover .clink-arr { transform:translateX(4px); }

/* PHOTO PLACEHOLDER */
.photo-wrap {
  width:100%; aspect-ratio:1;
  background:var(--surface);
  border:2px dashed var(--red-border);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:0.75rem; cursor:pointer; position:relative; overflow:hidden;
  transition: border-color 0.2s;
}
.photo-wrap:hover { border-color:var(--red); }
.photo-wrap img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.photo-placeholder-text { font-family:var(--M); font-size:11px; color:var(--muted); letter-spacing:0.1em; text-align:center; position:relative; z-index:1; }
.photo-icon { font-size:32px; opacity:0.3; position:relative; z-index:1; }

@media(max-width:900px){
  nav { padding:0 1.5rem; }
  .nav-links { display:none; }
  section { padding:3.5rem 1.5rem; }
  .grid-2,.grid-3 { grid-template-columns:1fr; }
  .timeline::before { display:none; }
  .tl-item { grid-template-columns:1fr; gap:0.4rem; }
  .tl-item::before { display:none; }
  .tl-period { text-align:left; padding-right:0; }
  footer { flex-direction:column; gap:1rem; text-align:center; }
  .form-row { grid-template-columns:1fr; }
}

/* cert logos sizing */
.cert-logo { background: #fff; padding: 3px; }
