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

body {
  font-family: "Courier New", monospace;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Binary Background */
.binary-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 14px;
  color: rgb(var(--green-rgb) / 0.03);
  line-height: 20px;
  pointer-events: none;
  z-index: -2;
  white-space: pre;
  overflow: hidden;
}

/* Security Icon */
.security-icon {
  position: fixed;
  top: 20%;
  right: 10%;
  font-size: 120px;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
  filter: blur(1px);
}

/* Rolling Notification Bar */
.notification-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 320px;
  height: 100vh;
  background: linear-gradient(
    180deg,
    var(--sidebar-top),
    var(--sidebar-bottom)
  );
  border-left: 1px solid var(--glass-border);
  z-index: 1000;
  overflow: hidden;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.notification-header {
  padding: 20px;
  background: linear-gradient(
    90deg,
    rgb(var(--green-rgb) / 0.1) 0%,
    transparent 100%
  );
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-header::before {
  content: "●";
  color: var(--terminal-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.notification-header h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--terminal-green);
  margin: 0;
}

.notification-container {
  height: calc(100vh - 60px);
  overflow: hidden;
  position: relative;
}

.notification-scroll {
  animation: scrollUp 30s linear infinite;
  padding: 20px;
}

.notification-scroll:hover {
  animation-play-state: paused;
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.notification-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.notification-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--terminal-green);
  opacity: 0.5;
}

.notification-item:hover {
  transform: translateX(-5px);
  border-color: var(--terminal-green);
  box-shadow: 0 5px 20px rgb(var(--green-rgb) / 0.2);
}

.notification-item:hover::before {
  opacity: 1;
  box-shadow: 0 0 10px var(--terminal-green);
}

.notification-date {
  font-size: 11px;
  color: var(--terminal-blue);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.notification-date::before {
  content: ">";
  color: var(--terminal-green);
}

.notification-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.notification-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.notification-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgb(var(--blue-rgb) / 0.1);
  border: 1px solid rgb(var(--blue-rgb) / 0.3);
  border-radius: 12px;
  font-size: 10px;
  color: var(--terminal-blue);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.notification-tag.research {
  background: rgb(var(--green-rgb) / 0.1);
  border-color: rgb(var(--green-rgb) / 0.3);
  color: var(--terminal-green);
}

.notification-tag.writing {
  background: rgb(var(--yellow-rgb) / 0.1);
  border-color: rgb(var(--yellow-rgb) / 0.3);
  color: var(--terminal-yellow);
}

.notification-tag.conference {
  background: rgb(var(--red-rgb) / 0.1);
  border-color: rgb(var(--red-rgb) / 0.3);
  color: var(--terminal-red);
}

/* Main content adjustment */
main {
  margin-right: 320px;
  position: relative;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 320px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}

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

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terminal-green);
  transition: width 0.3s;
}

nav a:hover {
  color: var(--terminal-green);
}

nav a:hover::after {
  width: 100%;
}

/* Terminal Intro */
.terminal-intro {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0 20px;
}

.terminal-container {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.terminal-header {
  background: var(--terminal-title-bg);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
}

.terminal-title {
  color: var(--text-secondary);
  font-size: 12px;
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-body {
  padding: 30px;
  font-size: 16px;
}

.terminal-line {
  margin-bottom: 15px;
  min-height: 24px;
}

.prompt {
  color: var(--terminal-green);
  margin-right: 10px;
}

.command {
  color: var(--text-primary);
}

.output {
  color: var(--terminal-blue);
  display: block;
  margin-left: 25px;
  opacity: 1;
  transition: opacity 0.3s;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background: var(--terminal-green);
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.status-line {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.status {
  color: var(--terminal-green);
  font-weight: bold;
}

.scroll-indicator {
  position: absolute;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transition: opacity 0.3s;
}

.scroll-mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--terminal-green);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
  }
}

.scroll-text {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Sections */
section {
  padding: 100px 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--terminal-green);
  box-shadow: 0 0 10px var(--terminal-green);
}

/* Bio Section */
.bio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}

.bio-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid var(--terminal-green);
  object-fit: cover;
  box-shadow: 0 0 30px rgb(var(--green-rgb) / 0.3);
}

.bio-text {
  font-size: 18px;
  line-height: 1.8;
  max-width: 600px;
}

.bio-text strong {
  color: var(--terminal-green);
}

.cta-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.btn {
  padding: 12px 30px;
  border: 2px solid var(--terminal-green);
  color: var(--terminal-green);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.btn:hover {
  background: var(--terminal-green);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgb(var(--green-rgb) / 0.4);
}

.btn.ghost {
  background: transparent;
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.btn.ghost:hover {
  border-color: var(--terminal-blue);
  color: var(--terminal-blue);
  background: rgb(var(--blue-rgb) / 0.1);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 30px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--terminal-green),
    var(--terminal-blue)
  );
  transform: scaleX(0);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgb(var(--green-rgb) / 0.3);
  box-shadow: 0 10px 40px var(--terminal-title-bg);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  color: var(--terminal-green);
  margin-bottom: 10px;
  font-size: 18px;
}

.muted {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.badge {
  padding: 4px 12px;
  background: rgb(var(--green-rgb) / 0.1);
  border: 1px solid rgb(var(--green-rgb) / 0.3);
  border-radius: 15px;
  font-size: 11px;
  color: var(--terminal-green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge.tag-sast {
  background: rgb(var(--blue-rgb) / 0.1);
  border-color: rgb(var(--blue-rgb) / 0.3);
  color: var(--terminal-blue);
}
.badge.tag-devsecops {
  background: rgb(var(--yellow-rgb) / 0.1);
  border-color: rgb(var(--yellow-rgb) / 0.3);
  color: var(--terminal-yellow);
}
.badge.tag-privacy {
  background: rgb(var(--red-rgb) / 0.1);
  border-color: rgb(var(--red-rgb) / 0.3);
  color: var(--terminal-red);
}

/* Section Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--glass-border),
    transparent
  );
  margin: 0 50px;
}

/* Publications */
.pub-list {
  list-style: none;
  counter-reset: pub-counter;
}

.pub-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--glass-border);
}

.pub-item::before {
  counter-increment: pub-counter;
  content: "[" counter(pub-counter) "]";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--terminal-green);
  font-weight: bold;
  font-size: 18px;
}

.pub-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.pub-authors {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 14px;
}

.me {
  color: var(--terminal-green);
  font-weight: bold;
}

.pub-venue {
  color: var(--terminal-blue);
  font-style: italic;
  margin-bottom: 15px;
  font-size: 14px;
}

.pub-links a {
  color: var(--terminal-green);
  text-decoration: none;
  margin-right: 20px;
  font-size: 14px;
  transition: all 0.3s;
}

.pub-links a:hover {
  text-shadow: 0 0 10px var(--terminal-green);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--terminal-green),
    var(--terminal-blue)
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--glass-border);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--terminal-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--terminal-green);
}

.timeline-item h3 {
  color: var(--terminal-green);
  margin-bottom: 5px;
}

.timeline-date {
  color: var(--terminal-blue);
  font-size: 14px;
  margin-bottom: 15px;
}

/* Education */
.edu {
  list-style: none;
}

.edu li {
  margin-bottom: 30px;
  padding: 25px;
  background: var(--bg-card);
  border-left: 3px solid var(--terminal-green);
  border-radius: 0 10px 10px 0;
}

.edu strong {
  color: var(--terminal-green);
  font-size: 18px;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-category {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.skill-category h3 {
  color: var(--terminal-green);
  margin-bottom: 15px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Activities */
#activities ul {
  list-style: none;
}

#activities li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

#activities li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--terminal-green);
}

#activities a {
  color: var(--terminal-blue);
  text-decoration: none;
  border-bottom: 1px dotted var(--terminal-blue);
}

#activities a:hover {
  color: var(--terminal-green);
  border-bottom-color: var(--terminal-green);
}

/* Contact */
.contact {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.contact li {
  padding: 20px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}

.contact li:hover {
  border-color: var(--terminal-green);
  transform: translateX(5px);
}

.contact a {
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact a:hover {
  color: var(--terminal-green);
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 30px;
  right: 350px;
  width: 60px;
  height: 60px;
  background: var(--terminal-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 5px 20px rgb(var(--green-rgb) / 0.4);
  transition: all 0.3s;
  z-index: 999;
}

.fab:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 30px rgb(var(--green-rgb) / 0.6);
}

/* Responsive */
@media (max-width: 1200px) {
  .notification-sidebar {
    transform: translateX(100%);
    transition: transform 0.3s;
  }

  .notification-sidebar.active {
    transform: translateX(0);
  }

  main {
    margin-right: 0;
  }

  header {
    right: 0;
  }

  .fab {
    right: 30px;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
  }

  section {
    padding: 60px 20px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

/* Reveal Animation */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.js-motion .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Small controls and overflow fixes; original page structure is unchanged. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height, 100px);
}
nav ul {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 16px 20px;
}
nav li.theme-item {
  display: flex;
  gap: 8px;
  align-items: center;
}
.activity-toggle {
  display: none;
}
.terminal-intro {
  min-height: 650px;
  padding-top: 100px;
}
.terminal-body,
.bio-text,
.pub-title,
.contact a {
  overflow-wrap: anywhere;
}
.cta-row {
  flex-wrap: wrap;
  justify-content: center;
}
.notification-scroll:focus-within {
  animation-play-state: paused;
}
.contact {
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}
.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}
.cursor {
  color: transparent;
}
.terminal-typing .output {
  opacity: 0;
}
.notification-container {
  overflow-y: auto;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 2000;
  background: var(--bg-card);
  color: var(--terminal-green);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
@media (max-width: 1200px) {
  .activity-toggle {
    display: inline-flex;
    padding: 7px 10px;
    background: var(--bg-card);
    color: var(--terminal-green);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    font: inherit;
    cursor: pointer;
  }
  .notification-sidebar {
    top: var(--header-height, 100px);
    height: calc(100dvh - var(--header-height, 100px));
    z-index: 90;
  }
  .notification-container {
    height: calc(100% - 60px);
  }
}
@media (max-width: 600px) {
  nav a {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  nav ul {
    gap: 8px 14px;
    padding: 10px 12px;
  }
  .terminal-intro {
    padding-top: 130px;
  }
  .terminal-body {
    padding: 20px 15px;
    font-size: 14px;
  }
  .terminal-title {
    font-size: 10px;
  }
  .section-title {
    font-size: 27px;
  }
  .pub-item {
    padding-left: 38px;
  }
  .notification-sidebar {
    width: min(320px, 100vw);
  }
}
