:root {
  --bg: #020617;
  --card: rgba(255,255,255,0.08);
  --neon: #00eaff;
  --text: #e5e7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

/* ================= HERO ================= */
.hero {
  padding: 50px 15px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ================= TERMINAL ================= */
.terminal {
  width: 100%;
  max-width: 650px;
  background: #020617;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,234,255,0.25);
  overflow: hidden;
}

.terminal-header {
  background: #0f172a;
  padding: 10px;
  display: flex;
  gap: 8px;
}

.terminal-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-header span:nth-child(1){background:#ff5f56;}
.terminal-header span:nth-child(2){background:#ffbd2e;}
.terminal-header span:nth-child(3){background:#27c93f;}

.terminal-body {
  padding: 18px;
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--neon);

  white-space: pre-wrap;
  word-break: break-word;
}

/* ================= DANCING ARROW ================= */
.scroll-hint {
  margin-top: 15px;
  font-size: 1.4rem;
  color: var(--neon);
  animation: dance 1.2s infinite;
  cursor: pointer;
}

@keyframes dance {
  0% {transform:translateY(0);}
  50% {transform:translateY(10px);}
  100% {transform:translateY(0);}
}

/* ================= SECTIONS ================= */
.section {
  padding: 60px 10%;
}

.section-title {
  text-align: center;
  color: var(--neon);
  margin-bottom: 40px;
}

/* ================= CARDS ================= */
.glass-card, .skill-card, .node {
  background: var(--card);
  padding: 25px;
  border-radius: 14px;
}

.about-card {
  text-align: center;
  max-width: 720px;      /* ⭐ key fix */
  margin: auto;          /* center card */
  line-height: 1.7;
  font-size: 1.05rem;
}
.about-actions {
  margin-top: 28px;
}
.about-card p {
  opacity: 0.9;
}


/* ================= BUTTON ================= */
.btn.primary {
  background: var(--neon);
  color: black;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
}

/* ================= SKILLS ================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 20px;
}

.progress {
  height: 6px;
  background: #111;
  margin-top: 8px;
  border-radius: 10px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--neon);
}

/* ================= NETWORK ================= */
.network-diagram {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.line {
  width: 30px;
  height: 2px;
  background: var(--neon);
}

/* ================= CONTACT ================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 25px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 20px;
}

#topBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--neon);
  border: none;
  padding: 8px;
  border-radius: 50%;
}

/* ================= MOBILE ================= */
@media(max-width:600px){
  .terminal-body{
    font-size:0.8rem;
  }
  .section{
    padding:40px 6%;
  }
}
