/* --- TOKENS --- */
:root {
  --bg-main: #f8fafc;
  --bg-sidebar: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --accent-blue: #2563eb;
  /* Restored this key color */
  --border-subtle: #e2e8f0;
  --font-mono: 'JetBrains Mono', monospace;
}

/* --- BASE STYLES --- */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
  width: 340px;
  background: var(--bg-sidebar);
  padding: 20px 30px;
  border-right: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.profile {
  text-align: center;
}

.profile img {
  width: 170px;
  height: 170px;
  border-radius: 28px;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.profile h2 {
  font-size: 1.3rem;
  margin: 0;
  font-weight: 700;
}

.role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 2px 0 15px 0;
  line-height: 1.2;
}

/* --- NAVIGATION & BUTTONS --- */
.links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 5px;
  margin-left: 5px;
}

.pop-link,
.static-btn,
.inline-btn {
  display: block;
  padding: 7px 12px;
  background: #f1f5f9;
  color: var(--accent-blue);
  /* Restored Blue Accent */
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.static-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.pop-link:hover,
.inline-btn:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
}

.inline-btn {
  display: inline-block;
  margin-top: 10px;
  width: auto;
}

/* Fix: Download Resume Button Size */
.btn-primary {
  margin-top: auto;
  padding: 7px 12px;
  /* Matches .pop-link exactly */
  background: var(--text-primary);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  font-size: 0.85rem;
  /* Matches others */
  transition: all 0.2s;
  display: inline-block;
  align-self: center;
  /* Keeps it neat in sidebar */
  width: auto;
  /* Removes the "Too Big" feel */
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
}

/* --- CONTENT AREA --- */
.content {
  flex: 1;
  padding: 60px 80px;
  max-width: 900px;
}

section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* --- CARDS --- */
.card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.company {
  color: #2563eb !important; 
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 10px 0;
}

/* UNIFIED TEXT SIZE */
.card p,
.card-text,
.card li {
  font-size: 0.95rem;
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--text-primary);
}

.date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.no-border {
  border: none;
  padding: 0;
  background: transparent;
}

/* --- SKILLS CHIPS --- */
.skill-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.chip {
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #334155;
  border: 1px solid var(--border-subtle);
}

/* --- TERMINAL & FOOTER --- */
.terminal-frame {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
}

.terminal-header {
  background: #333;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #777;
  margin-left: 10px;
}

.architecture-img {
  width: 100%;
  display: block;
}

.system-footer {
  margin-top: 60px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 5px #10b981;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    padding: 30px 20px;
  }

  .content {
    padding: 40px 20px;
  }
}