/* ===== CSS VARIABLES ===== */
:root {
  --bg: #050a0e;
  --surface: #0a1520;
  --surface2: #0f1f2e;
  --accent: #00d4ff;
  --accent2: #00ff9d;
  --accent3: #ff6b35;
  --text: #c8e6f0;
  --muted: #4a7a8a;
  --border: rgba(0, 212, 255, 0.15);
  --glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  overflow-x: hidden;
}

/* ===== SCANLINE + GRID OVERLAYS ===== */
body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0, 0, 0, 0.04) 2px, rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 9999;
}
body::after {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); }

/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(5, 10, 14, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 32px;
}
.nav-logo {
  font-family: 'Orbitron', monospace;
  font-weight: 900; font-size: 1rem;
  color: var(--accent); text-decoration: none;
  letter-spacing: 0.15em;
}
.nav-logo span { color: var(--accent2); }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.08em;
  padding: 7px 12px;
  border: 1px solid transparent;
  transition: all 0.3s;
  text-transform: uppercase;
}
.nav-links a::before {
  content: attr(data-num);
  color: var(--accent);
  margin-right: 5px; font-size: 0.6rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-color: var(--border);
  background: rgba(0, 212, 255, 0.05);
}

.nav-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.62rem; color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent2);
  animation: pulse 2s infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(0, 255, 157, 0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 80px 32px 40px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  font-family: 'Orbitron', monospace;
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 900;
  color: rgba(0, 212, 255, 0.018);
  white-space: nowrap; pointer-events: none; user-select: none;
}

/* Terminal widget */
.terminal {
  position: absolute; top: 110px; right: 48px;
  width: 310px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--glow);
  opacity: 0.85;
}
.tbar {
  background: var(--surface2);
  padding: 9px 14px;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}
.td { width: 10px; height: 10px; border-radius: 50%; }
.td:nth-child(1) { background: #ff5f57; }
.td:nth-child(2) { background: #ffbd2e; }
.td:nth-child(3) { background: #28c840; }
.ttitle {
  margin: 0 auto;
  font-size: 0.6rem; color: var(--muted);
  font-family: 'Share Tech Mono', monospace;
}
.tbody {
  padding: 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem; line-height: 1.9;
}
.tp { color: var(--accent2); }
.tc { color: var(--text); }
.to { color: var(--muted); }
.ta { color: var(--accent); }
.tcursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--accent);
  animation: blink 1s infinite;
  vertical-align: middle;
}

/* Hero content */
.hero-content { max-width: 580px; position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem; color: var(--accent);
  letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 36px; height: 1px;
  background: var(--accent);
}
h1.hero-name {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 900; line-height: 1.1;
  color: #fff; margin-bottom: 14px;
}
h1.hero-name span {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}
.hero-role {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  color: var(--accent2);
  margin-bottom: 26px; letter-spacing: 0.05em;
}
.hero-role em { color: var(--muted); font-style: normal; margin: 0 8px; }
.hero-desc {
  font-size: 0.86rem; color: var(--muted);
  line-height: 1.95; margin-bottom: 32px;
}

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.badge {
  padding: 5px 13px;
  border: 1px solid var(--border); border-radius: 3px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem; color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
}
.badge.g {
  border-color: rgba(0, 255, 157, 0.2);
  color: var(--accent2); background: rgba(0, 255, 157, 0.05);
}
.badge.o {
  border-color: rgba(255, 107, 53, 0.2);
  color: var(--accent3); background: rgba(255, 107, 53, 0.05);
}

/* Buttons */
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  padding: 11px 24px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.76rem; letter-spacing: 0.1em;
  text-decoration: none; text-transform: uppercase;
  border-radius: 3px; transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-p {
  background: var(--accent); color: var(--bg);
  border: 1px solid var(--accent); font-weight: 600;
}
.btn-p:hover {
  background: transparent; color: var(--accent);
  box-shadow: var(--glow);
}
.btn-g { border: 1px solid var(--border); color: var(--text); }
.btn-g:hover {
  border-color: var(--accent); color: var(--accent);
  box-shadow: var(--glow);
}

/* ===== SECTION LAYOUT ===== */
section { padding: 90px 32px; position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; }
.sec-head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 54px;
}
.sec-num {
  font-family: 'Orbitron', monospace;
  font-size: 0.68rem; color: var(--accent); letter-spacing: 0.2em;
}
.sec-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700; color: #fff; letter-spacing: 0.08em;
}
.sec-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ===== ABOUT ===== */
#about { background: var(--surface); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
.about-text p {
  font-size: 0.86rem; line-height: 2;
  color: var(--muted); margin-bottom: 14px;
}
.about-text p strong { color: var(--accent); }
.stats-row {
  display: flex; margin-top: 36px;
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
}
.stat {
  flex: 1; padding: 22px 16px; text-align: center;
  border-right: 1px solid var(--border);
  background: var(--surface2);
}
.stat:last-child { border-right: none; }
.stat-n {
  font-family: 'Orbitron', monospace;
  font-size: 1.6rem; font-weight: 900;
  color: var(--accent); display: block;
}
.stat-l {
  font-size: 0.6rem; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px;
}
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-item {
  padding: 13px 14px;
  background: var(--surface2);
  border: 1px solid var(--border); border-radius: 4px;
}
.info-label {
  font-size: 0.6rem; color: var(--accent);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 3px;
  font-family: 'Share Tech Mono', monospace;
}
.info-val {
  font-size: 0.76rem; color: var(--text);
  font-family: 'Share Tech Mono', monospace;
}
.info-val a { color: var(--accent2); text-decoration: none; }
.info-val a:hover { text-decoration: underline; }

/* ===== SKILLS ===== */
#skills { background: var(--bg); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 22px; position: relative; overflow: hidden;
  transition: all 0.3s;
}
.skill-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.skill-card.g::before { background: linear-gradient(90deg, var(--accent2), transparent); }
.skill-card.o::before { background: linear-gradient(90deg, var(--accent3), transparent); }
.skill-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}
.skill-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem; font-weight: 700;
  color: var(--accent); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.skill-card.g .skill-label { color: var(--accent2); }
.skill-card.o .skill-label { color: var(--accent3); }
.skill-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.stag {
  padding: 4px 11px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.1); border-radius: 3px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem; color: var(--text); transition: all 0.2s;
}
.stag:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent); border-color: rgba(0, 212, 255, 0.3);
}

/* ===== PROJECTS ===== */
#projects { background: var(--surface); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.project-card {
  background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 26px; transition: all 0.3s;
}
.project-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--glow);
}
.proj-id {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem; color: var(--muted);
  letter-spacing: 0.2em; margin-bottom: 10px;
}
.proj-name {
  font-family: 'Orbitron', monospace;
  font-size: 0.95rem; font-weight: 700;
  color: #fff; margin-bottom: 5px;
}
.proj-type {
  font-size: 0.7rem; color: var(--accent2);
  font-family: 'Share Tech Mono', monospace;
  margin-bottom: 14px;
}
.proj-desc {
  font-size: 0.78rem; color: var(--muted);
  line-height: 1.85; margin-bottom: 18px;
}
.proj-tech { display: flex; flex-wrap: wrap; gap: 5px; }
.ptag {
  padding: 3px 9px;
  background: rgba(0, 255, 157, 0.05);
  border: 1px solid rgba(0, 255, 157, 0.1); border-radius: 2px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.63rem; color: var(--accent2);
}

/* ===== HIGHLIGHTS ===== */
#highlights { background: var(--bg); }
.timeline { position: relative; padding-left: 38px; }
.timeline::before {
  content: ''; position: absolute;
  left: 7px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.tl-item {
  position: relative; margin-bottom: 34px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px;
}
.tl-item::before {
  content: ''; position: absolute;
  left: -36px; top: 26px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.tl-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.82rem; font-weight: 700;
  color: var(--accent); margin-bottom: 4px;
}
.tl-sub { font-size: 0.73rem; color: var(--text); margin-bottom: 7px; }
.tl-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.75; }

/* ===== CERTIFICATIONS ===== */
#certs { background: var(--surface); }
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.cert-card {
  padding: 18px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: all 0.3s;
}
.cert-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-3px);
}
.cert-icon {
  width: 34px; height: 34px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}
.cert-name {
  font-size: 0.8rem; font-weight: 600;
  color: var(--text); margin-bottom: 3px;
  font-family: 'Share Tech Mono', monospace;
}
.cert-issuer { font-size: 0.68rem; color: var(--accent); margin-bottom: 3px; }
.cert-id { font-size: 0.62rem; color: var(--muted); }

/* ===== EDUCATION ===== */
#education { background: var(--bg); }
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 34px;
  display: flex; gap: 36px; align-items: center;
  position: relative; overflow: hidden;
}
.edu-card::after {
  content: 'MDU'; position: absolute;
  right: -10px; bottom: -20px;
  font-family: 'Orbitron', monospace;
  font-size: 7rem; font-weight: 900;
  color: rgba(0, 212, 255, 0.025); pointer-events: none;
}
.edu-badge {
  width: 76px; height: 76px; flex-shrink: 0;
  background: rgba(0, 212, 255, 0.08);
  border: 2px solid var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 1rem; font-weight: 900; color: var(--accent);
  box-shadow: var(--glow);
}
.edu-degree {
  font-family: 'Orbitron', monospace;
  font-size: 0.95rem; font-weight: 700;
  color: #fff; margin-bottom: 5px;
}
.edu-school { font-size: 0.82rem; color: var(--accent2); margin-bottom: 4px; }
.edu-location { font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.edu-period {
  display: inline-block; padding: 3px 11px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border); border-radius: 3px;
  font-size: 0.68rem; color: var(--accent);
  font-family: 'Share Tech Mono', monospace;
  margin-top: 8px;
}

/* ===== CONTACT ===== */
#contact { background: var(--surface); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
}
.clinks { display: grid; gap: 10px; }
.clink {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px;
  background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px;
  text-decoration: none; color: var(--text);
  transition: all 0.3s;
  font-family: 'Share Tech Mono', monospace;
}
.clink:hover {
  border-color: var(--accent); color: var(--accent);
  box-shadow: var(--glow); transform: translateX(5px);
}
.clink-icon {
  width: 36px; height: 36px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}
.clink-label {
  font-size: 0.6rem; color: var(--muted);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 2px;
}
.clink-val { font-size: 0.76rem; }
.contact-msg {
  background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 30px;
}
.contact-msg h3 {
  font-family: 'Orbitron', monospace;
  font-size: 0.95rem; color: #fff; margin-bottom: 14px;
}
.contact-msg p {
  font-size: 0.8rem; color: var(--muted);
  line-height: 1.95; margin-bottom: 14px;
}

/* ===== FOOTER ===== */
footer {
  text-align: center; padding: 26px 32px;
  border-top: 1px solid var(--border);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem; color: var(--muted);
  position: relative; z-index: 1;
}
footer span { color: var(--accent); }
footer .sub {
  font-size: 0.58rem; margin-top: 5px;
  display: block; color: var(--muted);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-l {
  opacity: 0; transform: translateX(-36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-l.visible { opacity: 1; transform: none; }

.reveal-r {
  opacity: 0; transform: translateX(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-r.visible { opacity: 1; transform: none; }

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }
.d6 { transition-delay: 0.6s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .terminal { display: none; }
  section { padding: 60px 18px; }
  .stats-row { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .edu-card { flex-direction: column; gap: 18px; }
  .nav-links a { padding: 5px 8px; font-size: 0.62rem; }
  .nav-status { display: none; }
}
