:root {
  --bg-dark: #07090f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #00ff66; /* Switched to green */
  --accent-glow: rgba(0, 255, 102, 0.4);
  --error: #ff4d4d;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Base Navigation Styles --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: 'Fira Code', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.blink {
  animation: blinker 1s linear infinite;
}
@keyframes blinker { 50% { opacity: 0; } }

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Page & Typography Sections --- */
.page {
  min-height: 100vh; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 2rem 4rem 2rem;
  position: relative;
}

h1 {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  text-align: center;
  max-width: 600px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: text-shadow 0.3s ease;
}

a:hover {
  text-shadow: 0 0 8px var(--accent-glow);
}

/* --- Section Backgrounds --- */
#section1 { background: linear-gradient(to bottom, #07090f, #0d111c); }
#section2 { background: linear-gradient(to bottom, #0d111c, #111827); }
#section3 { background: linear-gradient(to bottom, #111827, #0f172a); }
#section6 { background: linear-gradient(to bottom, #0f172a, #1e1b4b); }
#section4 { background: linear-gradient(to bottom, #1e1b4b, #0d111c); }
#section5 { background: linear-gradient(to bottom, #0d111c, #07090f); }

/* --- Terminal Box (About Section) --- */
.terminal-box {
  background: #000;
  border-radius: 8px;
  border: 1px solid #333;
  width: 100%;
  max-width: 650px;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-family: 'Fira Code', monospace;
  overflow: hidden;
}

.terminal-header {
  background: #1a1a1a;
  padding: 10px 15px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #333;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-body {
  padding: 20px;
  color: #a9b7c6;
  font-size: 0.95rem;
}

.terminal-body ul {
  list-style: none;
  margin-top: 10px;
}

.terminal-body li {
  margin-bottom: 8px;
  color: var(--accent); /* Hacker green */
}

.error-text {
  color: var(--error);
}

.comment {
  color: #808080;
  font-style: italic;
}

/* --- Achievements List (Changed from pads) --- */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  width: 100%;
  margin-top: 2rem;
}

.achievements-list p {
  background: var(--bg-card);
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 1.05rem;
  color: var(--text-main);
  transition: background 0.3s ease;
}

.achievements-list p:hover {
  background: var(--bg-card-hover);
}

/* --- Publications (Clickable, full text, no icon) --- */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  width: 100%;
  margin-top: 2rem;
}

.pub-item {
  display: block; /* Makes the entire box clickable */
  background: var(--bg-card);
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
}

.pub-item:hover {
  background: var(--bg-card-hover);
  transform: translateX(8px);
  border-color: var(--accent);
  box-shadow: 0 5px 20px var(--accent-glow);
  color: var(--accent);
  text-shadow: none; /* remove default link glow inside the box */
}

.more-text {
  margin-top: 2rem;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
}

/* --- Projects --- */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
  margin-top: 3rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.1);
}

.card-img-placeholder {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.05);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.project-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: rgba(0, 255, 102, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  color: #000;
  text-shadow: none;
}

/* --- Contact Section --- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  width: 100%;
  max-width: 500px;
  margin-top: 2rem;
}

.contact-card p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-card i {
  color: var(--accent);
}

.social-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  
  .menu-toggle {
    display: block;
  }
    
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 15, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 0;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    padding: 15px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.02);
  }
  
  .pub-item { padding: 1rem; font-size: 0.95rem; }
}
