/* ===== Design Tokens ===== */
:root {
  --bg-main: #000000;
  --bg-section: #11141b;
  --bg-card: #141824;
  --text-main: #ffffff;
  --text-muted: #a0a7b9;
  --accent: #4da3ff;
  --accent-soft: rgba(77,163,255,0.15);
  --border-soft: rgba(255,255,255,0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
}

/* ===== Reset / Base ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Noto Sans', sans-serif;
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #12172a 0%, var(--bg-main) 60%);
  color: var(--text-main);
  line-height: 1.6;
}

/* ===== Header (Hero) ===== */
header {
  padding: 120px 24px 10px;
  text-align: center;
}

header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 300;
}

header p {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===== Paragraph Anchor ===== */
p a {
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.3s ease;
}

p a:hover {
  color: var(--text-main);
}

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.6);
}

nav::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );
  pointer-events: none;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 30px 0;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 300;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text-main);
}

/* ===== Sections ===== */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px;
}

section h2 {
  font-size: 3.5rem;
  margin-bottom: 50px;
  letter-spacing: -0.02em;
  font-weight: 350;
  text-align: center;
}

/* ===== Publication Icons ===== */
.institution {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.institution-text {
    font-size: 0.9rem;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
}

.institution-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.institution-icon img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* ===== Certifications ===== */
.certifications {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.container {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  position: relative;
  perspective: 1000px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); 
  will-change: transform;
}

.overlay {
position: absolute;
inset: 0;
background: radial-gradient(circle at 30% 20%, rgba(77,163,255,0.35), transparent 60%);
opacity: 0;
transition: opacity 0.3s ease;
border-radius: var(--radius-md);
}

.card {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.container:hover .overlay {
  opacity: 1;
}

/* ===== Award Image ===== */
.award-image img {
  width: 320px;
  max-width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

/* ===== Contact ===== */
#contact a {
  font-size: 1.4rem;
  margin: 0 5px;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 50px 24px;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 250;
  background: linear-gradient(180deg, transparent, #0b0d12);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );
  pointer-events: none;
}

/* ====================== TEST * ====================== */
/* ====================== TEST * ====================== */
/* ====================== TEST * ====================== */
#network-lab {
  position: relative;
  padding: 80px 0 40px;
}

#network-svg {
  display: block;
}

.network-controls {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.network-controls span {
  cursor: pointer;
  font-weight: 300;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.network-controls span:hover {
  color: var(--text-main);
}

.link {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
  fill: none;
  transition: stroke 0.3s, stroke-width 0.3s, opacity 0.3s;
}

.link.active {
  stroke: #4da3ff;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 3px #4da3ff);
}

.link.attack {
  stroke: #ff4d4d;
  stroke-dasharray: 5;
  animation: dash 1s linear infinite;
}

@keyframes drawPath {
  from { stroke-dashoffset: var(--path-length); }
  to { stroke-dashoffset: 0; }
}
