:root{
  --bg:#0b0d10;
  --panel:#0f1216;
  --text:#e6e9ef;
  --subtle:#9aa3b2;
  --accent:#7aa2f7;
  --accent-2:#a6da95;
  --border:#1a1f27;
  --danger:#f7768e;
  --shadow:0 10px 30px rgba(0,0,0,.3);
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Helvetica Neue',Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji";
  background:linear-gradient(180deg,var(--bg),#0a0c0f 60%,#07090b);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.site-header{
  position:sticky;top:0;z-index:10;
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 20px;margin:0 auto;max-width:980px;
  background:rgba(11,13,16,.6);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--border);
}
.brand{
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:9px;
  background:transparent;
  color:#0b0d10;font-weight:700;text-decoration:none;letter-spacing:.5px;
  overflow:hidden;
}
.brand-image{
  width:100%;height:100%;object-fit:cover;border-radius:9px;
  filter:invert(1);
}
.nav{position:relative;display:flex;gap:6px;background:var(--panel);padding:6px;border-radius:10px;border:1px solid var(--border)}
.nav-item{
  appearance:none;border:0;margin:0;padding:8px 12px;border-radius:8px;
  background:transparent;color:var(--text);font-weight:600;cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease;
  will-change:transform
}
.nav-item:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,0,.25)}
.nav-item[aria-current="page"]{color:var(--accent)}
.nav .indicator{
  position:absolute;left:0;bottom:6px;height:2px;border-radius:2px;
  width:28px;background:var(--accent);
  transition:transform .25s ease;opacity:.9
}

.container{max-width:980px;margin:24px auto;padding:0 20px}
.section{display:block;animation:fade .25s ease both}
.section[hidden]{display:none}

@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

h1{font-size:28px;margin:0 0 10px}
h2{font-size:20px;margin:14px 0 8px}
p{color:var(--subtle);line-height:1.65}

.links{display:flex;gap:14px;list-style:none;padding:0;margin:16px 0 0}
.links a{color:var(--accent);text-decoration:none}
.links a:hover{text-decoration:underline}

.about-intro{
  display:flex;gap:40px;align-items:center;margin-bottom:32px
}
.about-text{flex:1}
.profile-photo{
  width:220px;height:220px;border-radius:24px;object-fit:cover;
  border:1px solid var(--border);flex-shrink:0
}

.timeline{
  position:relative;margin:32px 0;padding-left:24px
}
.timeline::before{
  content:'';position:absolute;left:8px;top:0;bottom:0;width:2px;
  background:linear-gradient(180deg,var(--accent),var(--accent-2));opacity:.6
}
.timeline-item{
  position:relative;margin-bottom:32px;display:flex;align-items:flex-start
}
.timeline-dot{
  position:absolute;left:-20px;top:8px;width:12px;height:12px;
  background:var(--accent);border-radius:50%;border:3px solid var(--bg)
}
.timeline-content{
  display:flex;gap:16px;align-items:flex-start;flex:1
}
.org-image{
  width:60px;height:60px;border-radius:12px;object-fit:contain;
  flex-shrink:0;background:transparent
}
.org-image[src*="UTSLogo"]{
  filter:invert(1)
}
.org-image[src*="IQuasarLogo"]{
  filter:brightness(0) invert(1)
}
.timeline-text h3{
  margin:0 0 4px;font-size:18px;font-weight:600;color:var(--text)
}
.timeline-text .position{
  margin:0 0 8px;font-size:14px;font-weight:500;color:var(--accent)
}
.timeline-text .description{
  margin:0;font-size:14px;line-height:1.5;color:var(--subtle)
}

.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;list-style:none;padding:0;margin:0}
.card{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:14px;box-shadow:var(--shadow)}
.meta{display:flex;gap:8px;margin-top:8px}
.tag{font-size:12px;color:#c7d2e2;background:#11151a;border:1px solid var(--border);padding:4px 8px;border-radius:999px}

.post{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:14px}
.post time{color:var(--subtle);font-size:12px}

.contact-form{display:grid;gap:12px;max-width:560px}
.contact-form label{display:grid;gap:6px}
.contact-form input,.contact-form textarea{
  background:#0c0f13;border:1px solid var(--border);color:var(--text);
  padding:10px 12px;border-radius:10px;font:inherit
}
.contact-form input:focus,.contact-form textarea:focus{outline:2px solid var(--accent);outline-offset:2px}
.btn{background:var(--accent);color:#0b0d10;border:0;border-radius:10px;padding:10px 14px;font-weight:700;cursor:pointer}
.btn:hover{filter:brightness(1.05)}
.footnote{font-size:12px;color:var(--subtle)}

.site-footer{max-width:980px;margin:30px auto;padding:20px;color:var(--subtle);border-top:1px solid var(--border)}

@media (max-width:640px){
  .brand{width:32px;height:32px;border-radius:8px}
  .nav{overflow:auto}
  
  .about-intro{
    flex-direction:column;gap:20px;align-items:center;text-align:center
  }
  .profile-photo{
    width:160px;height:160px;border-radius:20px
  }
  
  .timeline{
    padding-left:16px;margin:24px 0
  }
  .timeline::before{
    left:6px
  }
  .timeline-dot{
    left:-14px;width:10px;height:10px
  }
  .timeline-content{
    flex-direction:column;gap:12px;align-items:center;text-align:center
  }
  .org-image{
    width:50px;height:50px;border-radius:10px
  }
  .timeline-text h3{
    font-size:16px;margin-bottom:6px
  }
  .timeline-text .position{
    font-size:13px;margin-bottom:6px
  }
  .timeline-text .description{
    font-size:13px;line-height:1.4
  }
}


